Skip to content

Commit

Permalink
Merge pull request logseq#9907 from logseq/enhance/resource-handling
Browse files Browse the repository at this point in the history
Enhance (dev): 3rd party resource handling
  • Loading branch information
logseq-cldwalker authored Jul 24, 2023
2 parents 219b118 + 3bce831 commit 8836ba7
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 157 deletions.
2 changes: 1 addition & 1 deletion .projectile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-/resources/static/js/katex.min.js
-/resources/static/js/mhchem.min.js
-/resources/static/js/mldoc.min.js
-/resources/static/js/reveal.min.js
-/resources/static/js/reveal.js
-/resources/static/js/sci.min.js
-/resources/static/js/excalidraw.min.js
-/resources/static/js/react-force-graph.min.js
8 changes: 6 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,17 @@ const common = {
]).pipe(gulp.dest(path.join(outputPath, 'js', 'excalidraw-assets'))),
() => gulp.src([
'node_modules/katex/dist/katex.min.js',
'node_modules/katex/dist/contrib/mhchem.min.js',
'node_modules/html2canvas/dist/html2canvas.min.js',
'node_modules/interactjs/dist/interact.min.js',
'node_modules/photoswipe/dist/umd/*.js'
'node_modules/photoswipe/dist/umd/*.js',
'node_modules/reveal.js/dist/reveal.js',
'node_modules/shepherd.js/dist/js/shepherd.min.js'
]).pipe(gulp.dest(path.join(outputPath, 'js'))),
() => gulp.src([
'node_modules/@tabler/icons/iconfont/tabler-icons.min.css',
'node_modules/inter-ui/inter.css'
'node_modules/inter-ui/inter.css',
'node_modules/reveal.js/dist/theme/fonts/source-sans-pro/**',
]).pipe(gulp.dest(path.join(outputPath, 'css'))),
() => gulp.src('node_modules/inter-ui/Inter (web)/*.*')
.pipe(gulp.dest(path.join(outputPath, 'css', 'Inter (web)'))),
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@
"react-tippy": "1.4.0",
"react-transition-group": "4.3.0",
"remove-accents": "0.4.2",
"reveal.js": "^4.5.0",
"sanitize-filename": "1.6.3",
"send-intent": "3.0.11",
"shepherd.js": "^9.1.0",
"tailwind-capitalize-first-letter": "^1.0.4",
"threads": "1.6.5",
"url": "^0.11.0",
Expand Down
3 changes: 1 addition & 2 deletions resources/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ html:not(.is-native-android) {

/* region Reset top elements */
html {
/* FIXME: rewrite revealjs.css ? */
height: unset !important;
overflow: hidden;
}

body {
Expand Down
7 changes: 0 additions & 7 deletions resources/css/reveal.min.css

This file was deleted.

1 change: 0 additions & 1 deletion resources/css/reveal_black.min.css

This file was deleted.

9 changes: 0 additions & 9 deletions resources/css/shepherd.css

This file was deleted.

1 change: 0 additions & 1 deletion resources/js/mhchem.min.js

This file was deleted.

13 changes: 0 additions & 13 deletions resources/js/reveal.min.js

This file was deleted.

Loading

0 comments on commit 8836ba7

Please sign in to comment.