@live-change/billing-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,54 @@
1
+ import dotenv from 'dotenv';
2
+ dotenv.config();
3
+ import { defineConfig } from 'vite';
4
+ import Pages from 'vite-plugin-pages';
5
+ import { fileURLToPath } from 'url';
6
+ import { dirname, join } from 'path';
7
+ import { accessSync, readFileSync } from 'fs';
8
+ const currentModuleDir = dirname(fileURLToPath(import.meta.url));
9
+ const packageJsonPath = dirname(fileURLToPath(import.meta.url))
10
+ .split('/').map((part, i, arr) => join(arr.slice(0, arr.length - i).join('/'), 'package.json')).find(p => { try {
11
+ accessSync(p);
12
+ return true;
13
+ }
14
+ catch (e) {
15
+ return false;
16
+ } });
17
+ const packageJson = packageJsonPath ? JSON.parse(readFileSync(packageJsonPath, 'utf-8')) : {};
18
+ const name = packageJson.name ?? "Example";
19
+ const version = process.env.VERSION ?? packageJson.version ?? 'unknown';
20
+ const homepage = process.env.BASE_HREF ?? packageJson.homepage;
21
+ const domain = (homepage && homepage.match(/https\:\/\/([^\/]+)/)?.[1]) || 'example.com';
22
+ // @ts-ignore
23
+ import baseViteConfig from '@live-change/frontend-base/vite-config.js';
24
+ export default defineConfig(async ({ command, mode }) => {
25
+ const baseConfig = (await baseViteConfig({ command, mode }));
26
+ return {
27
+ ...baseConfig,
28
+ define: {
29
+ ...baseConfig.define,
30
+ ENV_VERSION: JSON.stringify(version),
31
+ ENV_BRAND_NAME: JSON.stringify(name[0].toUpperCase() + name.slice(1)),
32
+ ENV_BRAND_DOMAIN: JSON.stringify(domain),
33
+ ENV_STRIPE_KEY: JSON.stringify(process.env.STRIPE_KEY),
34
+ },
35
+ plugins: [
36
+ ...baseConfig.plugins,
37
+ Pages({
38
+ dirs: [
39
+ // basic
40
+ { dir: 'src/pages', baseRoute: '' },
41
+ // blog
42
+ // { dir: 'src/blog', baseRoute: 'blog' },
43
+ ],
44
+ extensions: ['vue', 'md'],
45
+ }),
46
+ ],
47
+ resolve: {
48
+ ...baseConfig.resolve,
49
+ alias: [
50
+ ...baseConfig.resolve.alias,
51
+ ]
52
+ }
53
+ };
54
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/billing-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 --dbAccess --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
  }