Browse Source

handle magic-portal

Konstantinos Kaloutas 2 years ago
parent
commit
eb6a045619
4 changed files with 16 additions and 0 deletions
  1. 4 0
      gulpfile.js
  2. 2 0
      package.json
  3. 0 0
      resources/js/magic_portal.js
  4. 10 0
      yarn.lock

+ 4 - 0
gulpfile.js

@@ -3,6 +3,7 @@ const utils = require('util')
 const cp = require('child_process')
 const exec = utils.promisify(cp.exec)
 const path = require('path')
+const rename = require('gulp-rename')
 const gulp = require('gulp')
 const cleanCSS = require('gulp-clean-css')
 const del = require('del')
@@ -65,6 +66,9 @@ const common = {
         'node_modules/@highlightjs/cdn-assets/highlight.min.js',
         'node_modules/@isomorphic-git/lightning-fs/dist/lightning-fs.min.js'
       ]).pipe(gulp.dest(path.join(outputPath, 'js'))),
+      () => gulp.src([
+        'node_modules/magic-portal/dist/index.umd.js',
+      ]).pipe(rename('magic_portal.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',

+ 2 - 0
package.json

@@ -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",
@@ -122,6 +123,7 @@
         "interactjs": "^1.10.17",
         "jszip": "3.8.0",
         "katex": "^0.16.7",
+        "magic-portal": "^1.0.0",
         "marked": "^5.1.2",
         "mldoc": "1.5.7",
         "path": "0.12.7",

File diff suppressed because it is too large
+ 0 - 0
resources/js/magic_portal.js


+ 10 - 0
yarn.lock

@@ -3492,6 +3492,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.npmjs.org/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"
@@ -4502,6 +4507,11 @@ lru-cache@^6.0.0:
   dependencies:
     yallist "^4.0.0"
 
+magic-portal@^1.0.0:
+  version "1.0.0"
+  resolved "https://registry.npmjs.org/magic-portal/-/magic-portal-1.0.0.tgz#b7c07e6675e11428b42649807430b2628b214bd1"
+  integrity sha512-RRFQ9N1LQFETObTOmDoQeyAfsUUnSW59LqVpJjFxyCYE7vHb7EkYsw9PImvcI6ZdGzYs46Yc1r47n6RptYliUw==
+
 make-iterator@^1.0.0:
   version "1.0.1"
   resolved "https://registry.yarnpkg.com/make-iterator/-/make-iterator-1.0.1.tgz#29b33f312aa8f547c4a5e490f56afcec99133ad6"

Some files were not shown because too many files changed in this diff