mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix various import issues
This commit is contained in:
9
package-lock.json
generated
9
package-lock.json
generated
@@ -54,7 +54,7 @@
|
|||||||
"merge-stream": "^2.0.0",
|
"merge-stream": "^2.0.0",
|
||||||
"method-override": "^3.0.0",
|
"method-override": "^3.0.0",
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"moment-recur": "^1.0.7",
|
"moment-recur": "git://github.com/HabitRPG/moment-recur.git#d3e8e6da0806f13b74dd2e4d7d9053e6a63db119",
|
||||||
"mongoose": "^7.8.3",
|
"mongoose": "^7.8.3",
|
||||||
"morgan": "^1.10.0",
|
"morgan": "^1.10.0",
|
||||||
"nconf": "^0.12.1",
|
"nconf": "^0.12.1",
|
||||||
@@ -15457,9 +15457,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/moment-recur": {
|
"node_modules/moment-recur": {
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/moment-recur/-/moment-recur-1.0.7.tgz",
|
"resolved": "git+ssh://git@github.com/HabitRPG/moment-recur.git#d3e8e6da0806f13b74dd2e4d7d9053e6a63db119",
|
||||||
"integrity": "sha512-jpBQn6H62gCnEYjtYdLfK/VdPZHEXo1t8RrVItHVVS67SRvByyJBNBa3WQSGTe+8H0smcYO/79FYTA9LGMVdQw==",
|
"integrity": "sha512-LaqXV3izeVQjG0EKAEQQWdneMiff5JR6oBKcfgl0uFOTeaFzLKG62psk7r2VE7RTBdhYigt6KNaLZR7GdWPEIA==",
|
||||||
|
"license": "Unlicense",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"moment": "<3.0.0"
|
"moment": "<3.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
"merge-stream": "^2.0.0",
|
"merge-stream": "^2.0.0",
|
||||||
"method-override": "^3.0.0",
|
"method-override": "^3.0.0",
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"moment-recur": "^1.0.7",
|
"moment-recur": "git://github.com/HabitRPG/moment-recur.git#d3e8e6da0806f13b74dd2e4d7d9053e6a63db119",
|
||||||
"mongoose": "^7.8.3",
|
"mongoose": "^7.8.3",
|
||||||
"morgan": "^1.10.0",
|
"morgan": "^1.10.0",
|
||||||
"nconf": "^0.12.1",
|
"nconf": "^0.12.1",
|
||||||
|
|||||||
1834
website/client/package-lock.json
generated
1834
website/client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -30,7 +30,6 @@
|
|||||||
"jquery": "^3.7.1",
|
"jquery": "^3.7.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"moment-locales-webpack-plugin": "^1.2.0",
|
|
||||||
"nconf": "^0.12.1",
|
"nconf": "^0.12.1",
|
||||||
"sass": "^1.63.4",
|
"sass": "^1.63.4",
|
||||||
"sinon": "^17.0.1",
|
"sinon": "^17.0.1",
|
||||||
@@ -38,8 +37,8 @@
|
|||||||
"timers-browserify": "^2.0.12",
|
"timers-browserify": "^2.0.12",
|
||||||
"uuid": "^9.0.1",
|
"uuid": "^9.0.1",
|
||||||
"validator": "^13.9.0",
|
"validator": "^13.9.0",
|
||||||
"vite": "^4.0.11",
|
"vite": "^6.0.0",
|
||||||
"vite-plugin-vue2": "^2.0.3",
|
"@vitejs/plugin-vue2": "^2.3.3",
|
||||||
"vue": "^2.7.10",
|
"vue": "^2.7.10",
|
||||||
"vue-fragment": "^1.6.0",
|
"vue-fragment": "^1.6.0",
|
||||||
"vue-mugen-scroll": "^0.2.6",
|
"vue-mugen-scroll": "^0.2.6",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
$grid-gutter-width: 24px;
|
$grid-gutter-width: 24px;
|
||||||
|
|
||||||
// Bootstrap and its default variables
|
// Bootstrap and its default variables
|
||||||
@import 'node_modules/bootstrap/scss/bootstrap';
|
@import '~/bootstrap/scss/bootstrap';
|
||||||
|
|
||||||
// Bootstrap Vue styles
|
// Bootstrap Vue styles
|
||||||
@import 'node_modules/bootstrap-vue/dist/bootstrap-vue';
|
@import '~/bootstrap-vue/dist/bootstrap-vue';
|
||||||
@@ -12,7 +12,6 @@ export function isTrustedDomain (linkUrl, trustedDomains) {
|
|||||||
return trustedDomains.some(domain => parsedURL.hostname.includes(domain.hostname));
|
return trustedDomains.some(domain => parsedURL.hostname.includes(domain.hostname));
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(import.meta);
|
|
||||||
const TRUSTED_DOMAINS = import.meta.env.TRUSTED_DOMAINS.split(',')
|
const TRUSTED_DOMAINS = import.meta.env.TRUSTED_DOMAINS.split(',')
|
||||||
.map(u => (u === 'localhost' ? new URL('http://localhost') : new URL(u)));
|
.map(u => (u === 'localhost' ? new URL('http://localhost') : new URL(u)));
|
||||||
|
|
||||||
|
|||||||
@@ -95,6 +95,9 @@
|
|||||||
|
|
||||||
<style lang='scss'>
|
<style lang='scss'>
|
||||||
@import '@/assets/scss/colors.scss';
|
@import '@/assets/scss/colors.scss';
|
||||||
|
@import '~/intro.js/minified/introjs.min.css';
|
||||||
|
@import '~/axios-progress-bar/dist/nprogress.css';
|
||||||
|
|
||||||
|
|
||||||
.modal-backdrop {
|
.modal-backdrop {
|
||||||
opacity: .9 !important;
|
opacity: .9 !important;
|
||||||
@@ -389,6 +392,3 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style src="intro.js/minified/introjs.min.css"></style>
|
|
||||||
<style src="axios-progress-bar/dist/nprogress.css"></style>
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import nconf from 'nconf';
|
import nconf from 'nconf';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import { createVuePlugin as vue } from 'vite-plugin-vue2'
|
import vue from '@vitejs/plugin-vue2'
|
||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from 'node:url'
|
||||||
|
|
||||||
const configFile = path.join(path.resolve(__dirname, '../../config.json'));
|
const configFile = path.join(path.resolve(__dirname, '../../config.json'));
|
||||||
@@ -39,7 +39,6 @@ envVars
|
|||||||
envObject[`import.meta.env.${key}`] = `'${nconf.get(key)}'`;
|
envObject[`import.meta.env.${key}`] = `'${nconf.get(key)}'`;
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(envObject);
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
define: envObject,
|
define: envObject,
|
||||||
@@ -51,16 +50,16 @@ export default defineConfig({
|
|||||||
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
vue({
|
vue()
|
||||||
template: {
|
|
||||||
compilerOptions: {
|
|
||||||
compatConfig: {
|
|
||||||
MODE: 2,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
],
|
],
|
||||||
|
optimizeDeps: {
|
||||||
|
include: ['moment-recur']
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
commonjsOptions: {
|
||||||
|
include: [/moment-recur/, /node_modules/]
|
||||||
|
}
|
||||||
|
},
|
||||||
base: '/',
|
base: '/',
|
||||||
server: {
|
server: {
|
||||||
headers: { 'Cache-Control': 'no-store' },
|
headers: { 'Cache-Control': 'no-store' },
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
import defaults from 'lodash/defaults';
|
import defaults from 'lodash/defaults';
|
||||||
import invert from 'lodash/invert';
|
import invert from 'lodash/invert';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import 'moment-recur';
|
import 'moment-recur/moment-recur.js';
|
||||||
|
|
||||||
export const DAY_MAPPING = {
|
export const DAY_MAPPING = {
|
||||||
0: 'su',
|
0: 'su',
|
||||||
|
|||||||
Reference in New Issue
Block a user