diff --git a/gulpfile.js b/gulpfile.js index 8e40b0a..fd3d4ad 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -60,6 +60,26 @@ function watchTemplates () { } exports["watch:tmpl"] = watchTemplates +const fore = [ + "node_modules/@jinntec/fore/dist/fore.js", + "node_modules/@jinntec/fore/dist/fore.js.map", +] + +function copyFore() { + return src(fore, {base:"node_modules/@jinntec/fore/dist"}) + .pipe(dest('build/resources/js')) +} + +const foreStyles = [ + "node_modules/@jinntec/fore/resources/*.css", +] + +function copyForeStyles() { + return src(foreStyles, {base:"node_modules/@jinntec/fore/resources"}) + .pipe(dest('build/resources/css')) +} + +const copyNodeModules = parallel(copyFore, copyForeStyles) const static = 'src/**/*.{xml,html,xq,xquery,xql,xqm,xsl,xconf,json,svg,js,css,png,jpg,map}' @@ -117,7 +137,8 @@ function installXar () { const build = series( clean, templates, - copyStatic + copyStatic, + copyNodeModules ) const watchAll = parallel( watchStatic, diff --git a/package-lock.json b/package-lock.json index 5edfb75..631542e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,12 @@ "name": "tuttle", "version": "1.2.0", "license": "GPL-3.0", + "dependencies": { + "@jinntec/fore": "^1.8.0" + }, "devDependencies": { - "@existdb/gulp-exist": "^4.0.0", - "@existdb/gulp-replace-tmpl": "^1.0.0", + "@existdb/gulp-exist": "^4.4.0", + "@existdb/gulp-replace-tmpl": "^1.0.4", "@semantic-release/exec": "^5.0.0", "@semantic-release/git": "^9.0.0", "@semantic-release/github": "^7.2.0", @@ -207,6 +210,27 @@ "xmlrpc": "^1.3.1" } }, + "node_modules/@jinntec/fore": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@jinntec/fore/-/fore-1.8.0.tgz", + "integrity": "sha512-3/QQ06IEQjXoeZsU3UsXP0HH9MQggNZ3PRfDp29RO+WF11Nk6zzhHuH2kdZ20yhb5vH7N6G9tgekMq4M42D0Bw==", + "dependencies": { + "@jinntec/jinn-toast": "^1.0.5", + "fontoxpath": "^3.30.0" + }, + "engines": { + "node": ">= 16.19.1" + } + }, + "node_modules/@jinntec/jinn-toast": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@jinntec/jinn-toast/-/jinn-toast-1.0.5.tgz", + "integrity": "sha512-FVZsDUXS7wzXyl6s1oj0UwCtZ/fBn+T/GPSXxZ9eYBKVhgWUrLqrLDO7zeWuS/0D3/BrTiuTNcnk0d+c4nCKyw==", + "dependencies": { + "lit-html": "^1.4.1", + "toastify-js": "^1.11.0" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -3379,6 +3403,15 @@ } } }, + "node_modules/fontoxpath": { + "version": "3.30.1", + "resolved": "https://registry.npmjs.org/fontoxpath/-/fontoxpath-3.30.1.tgz", + "integrity": "sha512-prYHbxMwhLrhlpcSYuKxkHxcCV84W/Eo16nyZ/oVVBI7Pq1p1RMOTaIrz2m35yIfgr/bRVW9Ng8fMRVnJ9HriQ==", + "dependencies": { + "prsc": "4.0.0", + "xspattern": "^3.1.0" + } + }, "node_modules/for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -5435,6 +5468,11 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, + "node_modules/lit-html": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-1.4.1.tgz", + "integrity": "sha512-B9btcSgPYb1q4oSOb/PrOT6Z/H+r6xuNzfH4lFli/AWhYwdtrgQkQWBbIc6mdnf6E2IL3gDXdkkqNktpU0OZQA==" + }, "node_modules/load-json-file": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", @@ -10275,6 +10313,11 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "node_modules/prsc": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/prsc/-/prsc-4.0.0.tgz", + "integrity": "sha512-OmXQ2v76RlXNx/gqv7+oB6jyKnudJ/rsMfAIVexhbDFxXAJPoWKMxJkZU2ohlu4miCiSQCG+horf2DV4/kNc1Q==" + }, "node_modules/psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", @@ -12391,6 +12434,11 @@ "xtend": "~4.0.1" } }, + "node_modules/toastify-js": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/toastify-js/-/toastify-js-1.12.0.tgz", + "integrity": "sha512-HeMHCO9yLPvP9k0apGSdPUWrUbLnxUKNFzgUoZp1PHCLploIX/4DSQ7V8H25ef+h4iO9n0he7ImfcndnN6nDrQ==" + }, "node_modules/tough-cookie": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", @@ -13016,6 +13064,11 @@ "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==", "dev": true }, + "node_modules/whynot": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whynot/-/whynot-5.0.0.tgz", + "integrity": "sha512-cGGfDPYYqoHoMWqXVc3G+N74u1FhFhrBa+pOO906b9ktRc/JFUdwroTkfPqjKzyoCLVcKr6yy6bYIcWT7jTg2A==" + }, "node_modules/wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", @@ -13211,6 +13264,14 @@ "npm": ">=1.0.0" } }, + "node_modules/xspattern": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/xspattern/-/xspattern-3.1.0.tgz", + "integrity": "sha512-rxtOX8ORJizRqswIdZ72G3thKrHd0Q+TvyUCMByc5VdjDz1nkuZKfPXM3xGdrGi0fwEy+DDJN7DqtAZ06Re4bA==", + "dependencies": { + "whynot": "^5.0.0" + } + }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -13700,6 +13761,24 @@ "xmlrpc": "^1.3.1" } }, + "@jinntec/fore": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@jinntec/fore/-/fore-1.8.0.tgz", + "integrity": "sha512-3/QQ06IEQjXoeZsU3UsXP0HH9MQggNZ3PRfDp29RO+WF11Nk6zzhHuH2kdZ20yhb5vH7N6G9tgekMq4M42D0Bw==", + "requires": { + "@jinntec/jinn-toast": "^1.0.5", + "fontoxpath": "^3.30.0" + } + }, + "@jinntec/jinn-toast": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@jinntec/jinn-toast/-/jinn-toast-1.0.5.tgz", + "integrity": "sha512-FVZsDUXS7wzXyl6s1oj0UwCtZ/fBn+T/GPSXxZ9eYBKVhgWUrLqrLDO7zeWuS/0D3/BrTiuTNcnk0d+c4nCKyw==", + "requires": { + "lit-html": "^1.4.1", + "toastify-js": "^1.11.0" + } + }, "@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -16233,6 +16312,15 @@ "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", "dev": true }, + "fontoxpath": { + "version": "3.30.1", + "resolved": "https://registry.npmjs.org/fontoxpath/-/fontoxpath-3.30.1.tgz", + "integrity": "sha512-prYHbxMwhLrhlpcSYuKxkHxcCV84W/Eo16nyZ/oVVBI7Pq1p1RMOTaIrz2m35yIfgr/bRVW9Ng8fMRVnJ9HriQ==", + "requires": { + "prsc": "4.0.0", + "xspattern": "^3.1.0" + } + }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -17868,6 +17956,11 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, + "lit-html": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-1.4.1.tgz", + "integrity": "sha512-B9btcSgPYb1q4oSOb/PrOT6Z/H+r6xuNzfH4lFli/AWhYwdtrgQkQWBbIc6mdnf6E2IL3gDXdkkqNktpU0OZQA==" + }, "load-json-file": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", @@ -21457,6 +21550,11 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "prsc": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/prsc/-/prsc-4.0.0.tgz", + "integrity": "sha512-OmXQ2v76RlXNx/gqv7+oB6jyKnudJ/rsMfAIVexhbDFxXAJPoWKMxJkZU2ohlu4miCiSQCG+horf2DV4/kNc1Q==" + }, "psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", @@ -23160,6 +23258,11 @@ } } }, + "toastify-js": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/toastify-js/-/toastify-js-1.12.0.tgz", + "integrity": "sha512-HeMHCO9yLPvP9k0apGSdPUWrUbLnxUKNFzgUoZp1PHCLploIX/4DSQ7V8H25ef+h4iO9n0he7ImfcndnN6nDrQ==" + }, "tough-cookie": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", @@ -23690,6 +23793,11 @@ "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==", "dev": true }, + "whynot": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whynot/-/whynot-5.0.0.tgz", + "integrity": "sha512-cGGfDPYYqoHoMWqXVc3G+N74u1FhFhrBa+pOO906b9ktRc/JFUdwroTkfPqjKzyoCLVcKr6yy6bYIcWT7jTg2A==" + }, "wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", @@ -23838,6 +23946,14 @@ "xmlbuilder": "8.2.x" } }, + "xspattern": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/xspattern/-/xspattern-3.1.0.tgz", + "integrity": "sha512-rxtOX8ORJizRqswIdZ72G3thKrHd0Q+TvyUCMByc5VdjDz1nkuZKfPXM3xGdrGi0fwEy+DDJN7DqtAZ06Re4bA==", + "requires": { + "whynot": "^5.0.0" + } + }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/package.json b/package.json index 3876e61..f614211 100644 --- a/package.json +++ b/package.json @@ -40,5 +40,8 @@ "mocha": { "timeout": 10000, "slow": 1000 + }, + "dependencies": { + "@jinntec/fore": "^1.8.0" } } diff --git a/src/index.html b/src/index.html index d5ad0db..218ed4d 100644 --- a/src/index.html +++ b/src/index.html @@ -209,7 +209,7 @@