Skip to content

Commit

Permalink
chore: css use cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Sep 27, 2023
1 parent 6713429 commit ec4e712
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/public/configuration/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,21 @@ <h2>Schema</h2>
bootstrap5:
'https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css',
html: '',
spectre: 'https://unpkg.com/spectre.css/dist/spectre.min.css',
tailwind: 'https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css',
spectre:
'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/spectre.css/0.5.9/spectre.min.css',
tailwind:
'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/tailwindcss/1.9.6/tailwind.min.css',
};
themeLink.href = themeMap[data.options.theme];

// iconlLib
var iconLibMap = {
fontawesome5:
'https://use.fontawesome.com/releases/v5.6.1/css/all.css',
spectre: 'https://unpkg.com/spectre.css/dist/spectre-icons.min.css',
spectre:
'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/spectre.css/0.5.9/spectre-icons.min.css',
};

iconlibLink.href = iconLibMap[data.options.iconlib];

if (data.selectedLibs || data.unselectedLibs) {
Expand Down

0 comments on commit ec4e712

Please sign in to comment.