@live-change/balance-frontend 0.8.136 → 0.8.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfigExport;
2
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import { defineConfig } from 'vite';
2
+ import Pages from 'vite-plugin-pages';
3
+ import { fileURLToPath } from 'url';
4
+ import { dirname, join } from 'path';
5
+ import { accessSync, readFileSync } from 'fs';
6
+ const currentModuleDir = dirname(fileURLToPath(import.meta.url));
7
+ const packageJsonPath = dirname(fileURLToPath(import.meta.url))
8
+ .split('/').map((part, i, arr) => join(arr.slice(0, arr.length - i).join('/'), 'package.json')).find(p => { try {
9
+ accessSync(p);
10
+ return true;
11
+ }
12
+ catch (e) {
13
+ return false;
14
+ } });
15
+ const packageJson = packageJsonPath ? JSON.parse(readFileSync(packageJsonPath, 'utf-8')) : {};
16
+ const name = packageJson.name ?? "Example";
17
+ const version = process.env.VERSION ?? packageJson.version ?? 'unknown';
18
+ const homepage = process.env.BASE_HREF ?? packageJson.homepage;
19
+ const domain = (homepage && homepage.match(/https\:\/\/([^\/]+)/)?.[1]) || 'example.com';
20
+ // @ts-ignore
21
+ import baseViteConfig from '@live-change/frontend-base/vite-config.js';
22
+ export default defineConfig(async ({ command, mode }) => {
23
+ const baseConfig = (await baseViteConfig({ command, mode }));
24
+ return {
25
+ ...baseConfig,
26
+ define: {
27
+ ...baseConfig.define,
28
+ ENV_VERSION: JSON.stringify(version),
29
+ ENV_BRAND_NAME: JSON.stringify(name[0].toUpperCase() + name.slice(1)),
30
+ ENV_BRAND_DOMAIN: JSON.stringify(domain),
31
+ },
32
+ plugins: [
33
+ ...baseConfig.plugins,
34
+ Pages({
35
+ dirs: [
36
+ // basic
37
+ { dir: 'src/pages', baseRoute: '' },
38
+ // blog
39
+ // { dir: 'src/blog', baseRoute: 'blog' },
40
+ ],
41
+ extensions: ['vue', 'md'],
42
+ }),
43
+ ],
44
+ resolve: {
45
+ ...baseConfig.resolve,
46
+ alias: [
47
+ ...baseConfig.resolve.alias,
48
+ ]
49
+ }
50
+ };
51
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/balance-frontend",
3
- "version": "0.8.136",
3
+ "version": "0.8.137",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; node server/start.js localDev --enableSessions --initScript ./init.js",
@@ -35,41 +35,41 @@
35
35
  "@codemirror/language": "6.10.1",
36
36
  "@dotenvx/dotenvx": "0.27.0",
37
37
  "@fortawesome/fontawesome-free": "^6.5.2",
38
- "@live-change/access-control-frontend": "^0.8.136",
39
- "@live-change/access-control-service": "^0.8.136",
40
- "@live-change/backup-service": "^0.8.136",
41
- "@live-change/blog-frontend": "^0.8.136",
42
- "@live-change/blog-service": "^0.8.136",
43
- "@live-change/cli": "^0.8.136",
44
- "@live-change/content-frontend": "^0.8.136",
45
- "@live-change/content-service": "^0.8.136",
46
- "@live-change/dao": "^0.8.136",
47
- "@live-change/dao-vue3": "^0.8.136",
48
- "@live-change/dao-websocket": "^0.8.136",
49
- "@live-change/db-client": "^0.8.136",
50
- "@live-change/email-service": "^0.8.136",
51
- "@live-change/framework": "^0.8.136",
52
- "@live-change/frontend-auto-form": "^0.8.136",
53
- "@live-change/frontend-base": "^0.8.136",
54
- "@live-change/geoip-service": "^0.8.136",
55
- "@live-change/image-frontend": "^0.8.136",
56
- "@live-change/locale-settings-service": "^0.8.136",
57
- "@live-change/password-authentication-service": "^0.8.136",
58
- "@live-change/prosemirror-service": "^0.8.136",
59
- "@live-change/secret-code-service": "^0.8.136",
60
- "@live-change/secret-link-service": "^0.8.136",
61
- "@live-change/session-service": "^0.8.136",
62
- "@live-change/task-service": "^0.8.136",
63
- "@live-change/upload-frontend": "^0.8.136",
64
- "@live-change/url-frontend": "^0.8.136",
65
- "@live-change/url-service": "^0.8.136",
66
- "@live-change/user-frontend": "^0.8.136",
67
- "@live-change/user-identification-service": "^0.8.136",
68
- "@live-change/user-service": "^0.8.136",
69
- "@live-change/vote-service": "^0.8.136",
70
- "@live-change/vue3-components": "^0.8.136",
71
- "@live-change/vue3-ssr": "^0.8.136",
72
- "@live-change/wysiwyg-frontend": "^0.8.136",
38
+ "@live-change/access-control-frontend": "^0.8.137",
39
+ "@live-change/access-control-service": "^0.8.137",
40
+ "@live-change/backup-service": "^0.8.137",
41
+ "@live-change/blog-frontend": "^0.8.137",
42
+ "@live-change/blog-service": "^0.8.137",
43
+ "@live-change/cli": "^0.8.137",
44
+ "@live-change/content-frontend": "^0.8.137",
45
+ "@live-change/content-service": "^0.8.137",
46
+ "@live-change/dao": "^0.8.137",
47
+ "@live-change/dao-vue3": "^0.8.137",
48
+ "@live-change/dao-websocket": "^0.8.137",
49
+ "@live-change/db-client": "^0.8.137",
50
+ "@live-change/email-service": "^0.8.137",
51
+ "@live-change/framework": "^0.8.137",
52
+ "@live-change/frontend-auto-form": "^0.8.137",
53
+ "@live-change/frontend-base": "^0.8.137",
54
+ "@live-change/geoip-service": "^0.8.137",
55
+ "@live-change/image-frontend": "^0.8.137",
56
+ "@live-change/locale-settings-service": "^0.8.137",
57
+ "@live-change/password-authentication-service": "^0.8.137",
58
+ "@live-change/prosemirror-service": "^0.8.137",
59
+ "@live-change/secret-code-service": "^0.8.137",
60
+ "@live-change/secret-link-service": "^0.8.137",
61
+ "@live-change/session-service": "^0.8.137",
62
+ "@live-change/task-service": "^0.8.137",
63
+ "@live-change/upload-frontend": "^0.8.137",
64
+ "@live-change/url-frontend": "^0.8.137",
65
+ "@live-change/url-service": "^0.8.137",
66
+ "@live-change/user-frontend": "^0.8.137",
67
+ "@live-change/user-identification-service": "^0.8.137",
68
+ "@live-change/user-service": "^0.8.137",
69
+ "@live-change/vote-service": "^0.8.137",
70
+ "@live-change/vue3-components": "^0.8.137",
71
+ "@live-change/vue3-ssr": "^0.8.137",
72
+ "@live-change/wysiwyg-frontend": "^0.8.137",
73
73
  "@vueuse/core": "^10.11.0",
74
74
  "codeceptjs-assert": "^0.0.5",
75
75
  "compression": "^1.7.4",
@@ -91,7 +91,7 @@
91
91
  "vue3-scroll-border": "0.1.6"
92
92
  },
93
93
  "devDependencies": {
94
- "@live-change/codeceptjs-helper": "^0.8.136",
94
+ "@live-change/codeceptjs-helper": "^0.8.137",
95
95
  "codeceptjs": "^3.6.5",
96
96
  "generate-password": "1.7.1",
97
97
  "playwright": "^1.41.2",
@@ -102,5 +102,5 @@
102
102
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
103
103
  "license": "ISC",
104
104
  "description": "",
105
- "gitHead": "a641c8fbe90fa2383c623eaae18563765d1db28a"
105
+ "gitHead": "cb42255fbe7aa794dc5d7a6e57250ce8c959acf9"
106
106
  }