enhance tabler-icons resource handling

pull/10981/head
Konstantinos Kaloutas 2024-02-06 12:59:06 +02:00
parent 4aae2c166d
commit f8ac25154f
7 changed files with 12 additions and 6 deletions

View File

@ -54,7 +54,6 @@ necessary db filtering"
{:content
"minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no",
:name "viewport"}]
[:link {:type "text/css", :href "static/css/tabler-icons.min.css", :rel "stylesheet"}]
[:link {:type "text/css", :href "static/css/style.css", :rel "stylesheet"}]
[:link {:type "text/css", :href "static/css/custom.css", :rel "stylesheet"}]
[:link {:type "text/css", :href "static/css/export.css", :rel "stylesheet"}]

View File

@ -4,6 +4,7 @@ const cp = require('child_process')
const exec = utils.promisify(cp.exec)
const path = require('path')
const gulp = require('gulp')
const rename = require('gulp-rename');
const cleanCSS = require('gulp-clean-css')
const del = require('del')
const ip = require('ip')
@ -72,11 +73,13 @@ const common = {
'node_modules/react-dom/umd/react-dom.production.min.js',
'node_modules/react-dom/umd/react-dom.development.js',
]).pipe(gulp.dest(path.join(outputPath, 'js'))),
() => gulp.src(
'node_modules/@tabler/icons/icons-react/dist/index.umd.min.js',
).pipe(rename('tabler.min.js')).pipe(gulp.dest(path.join(outputPath, 'js'))),
() => gulp.src([
'node_modules/@glidejs/glide/dist/glide.min.js',
'node_modules/@glidejs/glide/dist/css/glide.core.min.css',
'node_modules/@glidejs/glide/dist/css/glide.theme.min.css',
]).pipe(gulp.dest(path.join(outputPath, 'js', 'glide'))),
]).pipe(gulp.dest(path.join(outputPath, 'js', 'tabler'))),
() => gulp.src([
'node_modules/pdfjs-dist/build/pdf.js',
'node_modules/pdfjs-dist/build/pdf.worker.js',
@ -86,7 +89,6 @@ const common = {
'node_modules/pdfjs-dist/cmaps/*.*',
]).pipe(gulp.dest(path.join(outputPath, 'js', 'pdfjs', 'cmaps'))),
() => gulp.src([
'node_modules/@tabler/icons/iconfont/tabler-icons.min.css',
'node_modules/inter-ui/inter.css',
'node_modules/reveal.js/dist/theme/fonts/source-sans-pro/**',
]).pipe(gulp.dest(path.join(outputPath, 'css'))),

View File

@ -18,6 +18,7 @@
"del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-rename": "^2.0.0",
"ip": "1.1.8",
"npm-run-all": "^4.1.5",
"playwright": "=1.31.0",

View File

@ -7,7 +7,6 @@
window.indexedDB;
</script>
<meta content="minimum-scale=1, initial-scale=1, maximum-scale=1, width=device-width, shrink-to-fit=no" name="viewport">
<link rel="stylesheet" type="text/css" href="./css/tabler-icons.min.css">
<link href="./css/style.css" rel="stylesheet" type="text/css">
<link href="./img/logo.png" rel="shortcut icon" type="image/png">
<link href="./img/logo.png" rel="shortcut icon" sizes="192x192">

File diff suppressed because one or more lines are too long

View File

@ -24,4 +24,5 @@
@import "pdfjs-dist/web/pdf_viewer.css";
@import "resources/css/tabler-extension.css";
@import "resources/css/codemirror.lsradix.css";
@import "@tabler/icons/iconfont/tabler-icons.min.css";
@import-glob "src/main/frontend/**/[!_]*.css";

View File

@ -3690,6 +3690,11 @@ gulp-cli@^2.2.0:
v8flags "^3.2.0"
yargs "^7.1.0"
gulp-rename@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/gulp-rename/-/gulp-rename-2.0.0.tgz#9bbc3962b0c0f52fc67cd5eaff6c223ec5b9cf6c"
integrity sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==
gulp@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/gulp/-/gulp-4.0.2.tgz#543651070fd0f6ab0a0650c6a3e6ff5a7cb09caa"