@leandrosk/dashboard 3.5.5 → 3.5.7
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.
- package/dist/plugin/api/api-extensions.d.ts +1 -0
- package/dist/plugin/api/api-extensions.js +35 -0
- package/dist/plugin/api/metrics.resolver.d.ts +8 -0
- package/dist/plugin/api/metrics.resolver.js +40 -0
- package/dist/plugin/config/metrics-strategies.d.ts +39 -0
- package/dist/plugin/config/metrics-strategies.js +74 -0
- package/dist/plugin/constants.d.ts +8 -0
- package/dist/plugin/constants.js +33 -0
- package/dist/plugin/dashboard.plugin.d.ts +115 -0
- package/dist/plugin/dashboard.plugin.js +339 -0
- package/dist/plugin/default-page.html +193 -0
- package/dist/plugin/index.d.ts +2 -0
- package/dist/plugin/index.js +18 -0
- package/dist/plugin/package.json +3 -0
- package/dist/plugin/service/metrics.service.d.ts +15 -0
- package/dist/plugin/service/metrics.service.js +129 -0
- package/dist/plugin/types.d.ts +20 -0
- package/dist/plugin/types.js +9 -0
- package/dist/vite/constants.d.ts +5 -0
- package/dist/vite/constants.js +280 -0
- package/dist/vite/index.d.ts +1 -0
- package/dist/vite/index.js +1 -0
- package/dist/vite/types.d.ts +79 -0
- package/dist/vite/types.js +1 -0
- package/dist/vite/utils/ast-utils.d.ts +5 -0
- package/dist/vite/utils/ast-utils.js +29 -0
- package/dist/vite/utils/ast-utils.spec.d.ts +1 -0
- package/dist/vite/utils/ast-utils.spec.js +45 -0
- package/dist/vite/utils/compiler.d.ts +23 -0
- package/dist/vite/utils/compiler.js +191 -0
- package/dist/vite/utils/get-dashboard-paths.d.ts +5 -0
- package/dist/vite/utils/get-dashboard-paths.js +20 -0
- package/dist/vite/utils/logger.d.ts +3 -0
- package/dist/vite/utils/logger.js +39 -0
- package/dist/vite/utils/path-transformer.d.ts +20 -0
- package/dist/vite/utils/path-transformer.js +116 -0
- package/dist/vite/utils/plugin-discovery.d.ts +27 -0
- package/dist/vite/utils/plugin-discovery.js +399 -0
- package/dist/vite/utils/schema-generator.d.ts +10 -0
- package/dist/vite/utils/schema-generator.js +35 -0
- package/dist/vite/utils/tsconfig-utils.d.ts +9 -0
- package/dist/vite/utils/tsconfig-utils.js +51 -0
- package/dist/vite/utils/ui-config.d.ts +3 -0
- package/dist/vite/utils/ui-config.js +44 -0
- package/dist/vite/vite-plugin-admin-api-schema.d.ts +24 -0
- package/dist/vite/vite-plugin-admin-api-schema.js +82 -0
- package/dist/vite/vite-plugin-config-loader.d.ts +16 -0
- package/dist/vite/vite-plugin-config-loader.js +70 -0
- package/dist/vite/vite-plugin-config.d.ts +4 -0
- package/dist/vite/vite-plugin-config.js +60 -0
- package/dist/vite/vite-plugin-dashboard-metadata.d.ts +7 -0
- package/dist/vite/vite-plugin-dashboard-metadata.js +61 -0
- package/dist/vite/vite-plugin-gql-tada.d.ts +6 -0
- package/dist/vite/vite-plugin-gql-tada.js +51 -0
- package/dist/vite/vite-plugin-hmr.d.ts +8 -0
- package/dist/vite/vite-plugin-hmr.js +34 -0
- package/dist/vite/vite-plugin-lingui-babel.d.ts +40 -0
- package/dist/vite/vite-plugin-lingui-babel.js +168 -0
- package/dist/vite/vite-plugin-tailwind-source.d.ts +7 -0
- package/dist/vite/vite-plugin-tailwind-source.js +48 -0
- package/dist/vite/vite-plugin-theme.d.ts +55 -0
- package/dist/vite/vite-plugin-theme.js +130 -0
- package/dist/vite/vite-plugin-transform-index.d.ts +11 -0
- package/dist/vite/vite-plugin-transform-index.js +40 -0
- package/dist/vite/vite-plugin-translations.d.ts +31 -0
- package/dist/vite/vite-plugin-translations.js +177 -0
- package/dist/vite/vite-plugin-ui-config.d.ts +181 -0
- package/dist/vite/vite-plugin-ui-config.js +36 -0
- package/dist/vite/vite-plugin-vendure-dashboard.d.ts +142 -0
- package/dist/vite/vite-plugin-vendure-dashboard.js +170 -0
- package/package.json +4 -3
- package/src/i18n/common-strings.ts +119 -118
- package/src/i18n/locales/el.po +5 -0
- package/src/i18n/locales/en.po +162 -157
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { PluginOption } from 'vite';
|
|
2
|
+
import { PathAdapter } from './types.js';
|
|
3
|
+
import { PackageScannerConfig } from './utils/compiler.js';
|
|
4
|
+
import { ThemeVariablesPluginOptions } from './vite-plugin-theme.js';
|
|
5
|
+
import { UiConfigPluginOptions } from './vite-plugin-ui-config.js';
|
|
6
|
+
/**
|
|
7
|
+
* @description
|
|
8
|
+
* Options for the {@link vendureDashboardPlugin} Vite plugin.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory vite-plugin
|
|
11
|
+
* @docsPage vendureDashboardPlugin
|
|
12
|
+
* @since 3.4.0
|
|
13
|
+
* @docsWeight 1
|
|
14
|
+
*/
|
|
15
|
+
export type VitePluginVendureDashboardOptions = {
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* The path to the Vendure server configuration file.
|
|
19
|
+
*/
|
|
20
|
+
vendureConfigPath: string | URL;
|
|
21
|
+
/**
|
|
22
|
+
* @description
|
|
23
|
+
* The {@link PathAdapter} allows you to customize the resolution of paths
|
|
24
|
+
* in the compiled Vendure source code which is used as part of the
|
|
25
|
+
* introspection step of building the dashboard.
|
|
26
|
+
*
|
|
27
|
+
* It enables support for more complex repository structures, such as
|
|
28
|
+
* monorepos, where the Vendure server configuration file may not
|
|
29
|
+
* be located in the root directory of the project.
|
|
30
|
+
*
|
|
31
|
+
* If you get compilation errors like "Error loading Vendure config: Cannot find module",
|
|
32
|
+
* you probably need to provide a custom `pathAdapter` to resolve the paths correctly.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* vendureDashboardPlugin({
|
|
37
|
+
* tempCompilationDir: join(__dirname, './__vendure-dashboard-temp'),
|
|
38
|
+
* pathAdapter: {
|
|
39
|
+
* getCompiledConfigPath: ({ inputRootDir, outputPath, configFileName }) => {
|
|
40
|
+
* const projectName = inputRootDir.split('/libs/')[1].split('/')[0];
|
|
41
|
+
* const pathAfterProject = inputRootDir.split(`/libs/${projectName}`)[1];
|
|
42
|
+
* const compiledConfigFilePath = `${outputPath}/${projectName}${pathAfterProject}`;
|
|
43
|
+
* return path.join(compiledConfigFilePath, configFileName);
|
|
44
|
+
* },
|
|
45
|
+
* transformTsConfigPathMappings: ({ phase, patterns }) => {
|
|
46
|
+
* // "loading" phase is when the compiled Vendure code is being loaded by
|
|
47
|
+
* // the plugin, in order to introspect the configuration of your app.
|
|
48
|
+
* if (phase === 'loading') {
|
|
49
|
+
* return patterns.map((p) =>
|
|
50
|
+
* p.replace('libs/', '').replace(/.ts$/, '.js'),
|
|
51
|
+
* );
|
|
52
|
+
* }
|
|
53
|
+
* return patterns;
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* // ...
|
|
57
|
+
* }),
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
pathAdapter?: PathAdapter;
|
|
61
|
+
/**
|
|
62
|
+
* @description
|
|
63
|
+
* The name of the exported variable from the Vendure server configuration file, e.g. `config`.
|
|
64
|
+
* This is only required if the plugin is unable to auto-detect the name of the exported variable.
|
|
65
|
+
*/
|
|
66
|
+
vendureConfigExport?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @description
|
|
69
|
+
* The path to the directory where the generated GraphQL Tada files will be output.
|
|
70
|
+
*/
|
|
71
|
+
gqlOutputPath?: string;
|
|
72
|
+
tempCompilationDir?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @description
|
|
75
|
+
* Allows you to customize the location of node_modules & glob patterns used to scan for potential
|
|
76
|
+
* Vendure plugins installed as npm packages. If not provided, the compiler will attempt to guess
|
|
77
|
+
* the location based on the location of the `@vendure/core` package.
|
|
78
|
+
*/
|
|
79
|
+
pluginPackageScanner?: PackageScannerConfig;
|
|
80
|
+
/**
|
|
81
|
+
* @description
|
|
82
|
+
* Allows you to specify the module system to use when compiling and loading your Vendure config.
|
|
83
|
+
* By default, the compiler will use CommonJS, but you can set it to `esm` if you are using
|
|
84
|
+
* ES Modules in your Vendure project.
|
|
85
|
+
*
|
|
86
|
+
* **Status** Developer preview. If you are using ESM please try this out and provide us with feedback!
|
|
87
|
+
*
|
|
88
|
+
* @since 3.5.1
|
|
89
|
+
* @default 'commonjs'
|
|
90
|
+
*/
|
|
91
|
+
module?: 'commonjs' | 'esm';
|
|
92
|
+
/**
|
|
93
|
+
* @description
|
|
94
|
+
* Allows you to selectively disable individual plugins.
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* vendureDashboardPlugin({
|
|
98
|
+
* vendureConfigPath: './config.ts',
|
|
99
|
+
* disablePlugins: {
|
|
100
|
+
* react: true,
|
|
101
|
+
* lingui: true,
|
|
102
|
+
* }
|
|
103
|
+
* })
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
disablePlugins?: {
|
|
107
|
+
tanstackRouter?: boolean;
|
|
108
|
+
linguiBabel?: boolean;
|
|
109
|
+
react?: boolean;
|
|
110
|
+
lingui?: boolean;
|
|
111
|
+
themeVariables?: boolean;
|
|
112
|
+
tailwindSource?: boolean;
|
|
113
|
+
tailwindcss?: boolean;
|
|
114
|
+
configLoader?: boolean;
|
|
115
|
+
viteConfig?: boolean;
|
|
116
|
+
adminApiSchema?: boolean;
|
|
117
|
+
dashboardMetadata?: boolean;
|
|
118
|
+
uiConfig?: boolean;
|
|
119
|
+
gqlTada?: boolean;
|
|
120
|
+
transformIndexHtml?: boolean;
|
|
121
|
+
translations?: boolean;
|
|
122
|
+
hmr?: boolean;
|
|
123
|
+
};
|
|
124
|
+
} & UiConfigPluginOptions & ThemeVariablesPluginOptions;
|
|
125
|
+
/**
|
|
126
|
+
* @description
|
|
127
|
+
* This is the Vite plugin which powers the Vendure Dashboard, including:
|
|
128
|
+
*
|
|
129
|
+
* - Configuring routing, styling and React support
|
|
130
|
+
* - Analyzing your VendureConfig file and introspecting your schema
|
|
131
|
+
* - Loading your custom Dashboard extensions
|
|
132
|
+
*
|
|
133
|
+
* @docsCategory vite-plugin
|
|
134
|
+
* @docsPage vendureDashboardPlugin
|
|
135
|
+
* @since 3.4.0
|
|
136
|
+
* @docsWeight 0
|
|
137
|
+
*/
|
|
138
|
+
export declare function vendureDashboardPlugin(options: VitePluginVendureDashboardOptions): PluginOption[];
|
|
139
|
+
/**
|
|
140
|
+
* Get the normalized path to the Vendure config file given either a string or URL.
|
|
141
|
+
*/
|
|
142
|
+
export declare function getNormalizedVendureConfigPath(vendureConfigPath: string | URL): string;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { lingui } from '@lingui/vite-plugin';
|
|
2
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
3
|
+
import { tanstackRouter } from '@tanstack/router-plugin/vite';
|
|
4
|
+
import react from '@vitejs/plugin-react';
|
|
5
|
+
import path from 'path';
|
|
6
|
+
import { adminApiSchemaPlugin } from './vite-plugin-admin-api-schema.js';
|
|
7
|
+
import { configLoaderPlugin } from './vite-plugin-config-loader.js';
|
|
8
|
+
import { viteConfigPlugin } from './vite-plugin-config.js';
|
|
9
|
+
import { dashboardMetadataPlugin } from './vite-plugin-dashboard-metadata.js';
|
|
10
|
+
import { gqlTadaPlugin } from './vite-plugin-gql-tada.js';
|
|
11
|
+
import { hmrPlugin } from './vite-plugin-hmr.js';
|
|
12
|
+
import { linguiBabelPlugin } from './vite-plugin-lingui-babel.js';
|
|
13
|
+
import { dashboardTailwindSourcePlugin } from './vite-plugin-tailwind-source.js';
|
|
14
|
+
import { themeVariablesPlugin } from './vite-plugin-theme.js';
|
|
15
|
+
import { transformIndexHtmlPlugin } from './vite-plugin-transform-index.js';
|
|
16
|
+
import { translationsPlugin } from './vite-plugin-translations.js';
|
|
17
|
+
import { uiConfigPlugin } from './vite-plugin-ui-config.js';
|
|
18
|
+
/**
|
|
19
|
+
* @description
|
|
20
|
+
* This is the Vite plugin which powers the Vendure Dashboard, including:
|
|
21
|
+
*
|
|
22
|
+
* - Configuring routing, styling and React support
|
|
23
|
+
* - Analyzing your VendureConfig file and introspecting your schema
|
|
24
|
+
* - Loading your custom Dashboard extensions
|
|
25
|
+
*
|
|
26
|
+
* @docsCategory vite-plugin
|
|
27
|
+
* @docsPage vendureDashboardPlugin
|
|
28
|
+
* @since 3.4.0
|
|
29
|
+
* @docsWeight 0
|
|
30
|
+
*/
|
|
31
|
+
export function vendureDashboardPlugin(options) {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
const tempDir = (_a = options.tempCompilationDir) !== null && _a !== void 0 ? _a : path.join(import.meta.dirname, './.vendure-dashboard-temp');
|
|
34
|
+
const normalizedVendureConfigPath = getNormalizedVendureConfigPath(options.vendureConfigPath);
|
|
35
|
+
const packageRoot = getDashboardPackageRoot();
|
|
36
|
+
const linguiConfigPath = path.join(packageRoot, 'lingui.config.js');
|
|
37
|
+
const disabled = (_b = options.disablePlugins) !== null && _b !== void 0 ? _b : {};
|
|
38
|
+
if (process.env.IS_LOCAL_DEV !== 'true') {
|
|
39
|
+
process.env.LINGUI_CONFIG = linguiConfigPath;
|
|
40
|
+
}
|
|
41
|
+
const pluginMap = [
|
|
42
|
+
{
|
|
43
|
+
key: 'tanstackRouter',
|
|
44
|
+
plugin: () => tanstackRouter({
|
|
45
|
+
autoCodeSplitting: true,
|
|
46
|
+
routeFileIgnorePattern: '.graphql.ts|components|hooks|utils',
|
|
47
|
+
routesDirectory: path.join(packageRoot, 'src/app/routes'),
|
|
48
|
+
generatedRouteTree: path.join(packageRoot, 'src/app/routeTree.gen.ts'),
|
|
49
|
+
}),
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
// Custom plugin that transforms Lingui macros using Babel instead of SWC.
|
|
53
|
+
// This runs BEFORE the react plugin to ensure macros are transformed first.
|
|
54
|
+
// Using Babel eliminates the SWC binary compatibility issues that caused
|
|
55
|
+
// "failed to invoke plugin" errors in external projects.
|
|
56
|
+
// See: https://github.com/vendurehq/vendure/issues/3929
|
|
57
|
+
key: 'linguiBabel',
|
|
58
|
+
plugin: () => linguiBabelPlugin(),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: 'react',
|
|
62
|
+
plugin: () => react(),
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
key: 'lingui',
|
|
66
|
+
plugin: () => lingui({}),
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: 'themeVariables',
|
|
70
|
+
plugin: () => themeVariablesPlugin({ theme: options.theme }),
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: 'tailwindSource',
|
|
74
|
+
plugin: () => dashboardTailwindSourcePlugin(),
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: 'tailwindcss',
|
|
78
|
+
plugin: () => tailwindcss(),
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: 'configLoader',
|
|
82
|
+
plugin: () => configLoaderPlugin({
|
|
83
|
+
vendureConfigPath: normalizedVendureConfigPath,
|
|
84
|
+
outputPath: tempDir,
|
|
85
|
+
pathAdapter: options.pathAdapter,
|
|
86
|
+
pluginPackageScanner: options.pluginPackageScanner,
|
|
87
|
+
module: options.module,
|
|
88
|
+
}),
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: 'viteConfig',
|
|
92
|
+
plugin: () => viteConfigPlugin({ packageRoot }),
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: 'adminApiSchema',
|
|
96
|
+
plugin: () => adminApiSchemaPlugin(),
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: 'dashboardMetadata',
|
|
100
|
+
plugin: () => dashboardMetadataPlugin(),
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: 'uiConfig',
|
|
104
|
+
plugin: () => uiConfigPlugin(options),
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: 'gqlTada',
|
|
108
|
+
plugin: () => options.gqlOutputPath &&
|
|
109
|
+
gqlTadaPlugin({ gqlTadaOutputPath: options.gqlOutputPath, tempDir, packageRoot }),
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
key: 'transformIndexHtml',
|
|
113
|
+
plugin: () => transformIndexHtmlPlugin(),
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: 'translations',
|
|
117
|
+
plugin: () => translationsPlugin({
|
|
118
|
+
packageRoot,
|
|
119
|
+
}),
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
key: 'hmr',
|
|
123
|
+
plugin: () => hmrPlugin(),
|
|
124
|
+
},
|
|
125
|
+
];
|
|
126
|
+
const plugins = [];
|
|
127
|
+
for (const entry of pluginMap) {
|
|
128
|
+
if (!disabled[entry.key]) {
|
|
129
|
+
const plugin = entry.plugin();
|
|
130
|
+
if (plugin) {
|
|
131
|
+
if (Array.isArray(plugin)) {
|
|
132
|
+
plugins.push(...plugin);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
plugins.push(plugin);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return plugins;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @description
|
|
144
|
+
* Returns the path to the root of the `@vendure/dashboard` package.
|
|
145
|
+
*/
|
|
146
|
+
function getDashboardPackageRoot() {
|
|
147
|
+
const fileUrl = import.meta.resolve('@vendure/dashboard');
|
|
148
|
+
const packagePath = fileUrl.startsWith('file:') ? new URL(fileUrl).pathname : fileUrl;
|
|
149
|
+
return fixWindowsPath(path.join(packagePath, '../../../'));
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Get the normalized path to the Vendure config file given either a string or URL.
|
|
153
|
+
*/
|
|
154
|
+
export function getNormalizedVendureConfigPath(vendureConfigPath) {
|
|
155
|
+
const stringPath = typeof vendureConfigPath === 'string' ? vendureConfigPath : vendureConfigPath.href;
|
|
156
|
+
if (stringPath.startsWith('file:')) {
|
|
157
|
+
return fixWindowsPath(new URL(stringPath).pathname);
|
|
158
|
+
}
|
|
159
|
+
return fixWindowsPath(stringPath);
|
|
160
|
+
}
|
|
161
|
+
function fixWindowsPath(filePath) {
|
|
162
|
+
// Fix Windows paths that might start with a leading slash
|
|
163
|
+
if (process.platform === 'win32') {
|
|
164
|
+
// Remove leading slash before drive letter on Windows
|
|
165
|
+
if (/^[/\\][A-Za-z]:/.test(filePath)) {
|
|
166
|
+
return filePath.substring(1);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return filePath;
|
|
170
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leandrosk/dashboard",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.5.
|
|
4
|
+
"version": "3.5.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -162,8 +162,9 @@
|
|
|
162
162
|
"@storybook/addon-vitest": "^10.0.0-beta.9",
|
|
163
163
|
"@storybook/react-vite": "^10.0.0-beta.9",
|
|
164
164
|
"@types/node": "^22.13.4",
|
|
165
|
-
"@vendure/common": "3.5.5",
|
|
166
|
-
"@vendure/core": "3.5.5",
|
|
165
|
+
"@vendure/common": "^3.5.5",
|
|
166
|
+
"@vendure/core": "^3.5.5",
|
|
167
|
+
"@vendure/ui-devkit": "^3.5.5",
|
|
167
168
|
"@vitest/browser": "^3.2.4",
|
|
168
169
|
"@vitest/coverage-v8": "^3.2.4",
|
|
169
170
|
"eslint": "^9.19.0",
|
|
@@ -1,118 +1,119 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These are strings that are not defined as string literals in the code (and therefore won't
|
|
3
|
-
* get extracted), but still need to have translations
|
|
4
|
-
*/
|
|
5
|
-
const commonI18nString = {
|
|
6
|
-
fulfillmentState: [
|
|
7
|
-
/* i18n*/ 'fulfillmentState.Created',
|
|
8
|
-
/* i18n*/ 'fulfillmentState.Pending',
|
|
9
|
-
/* i18n*/ 'fulfillmentState.Cancelled',
|
|
10
|
-
/* i18n*/ 'fulfillmentState.Shipped',
|
|
11
|
-
/* i18n*/ 'fulfillmentState.Delivered',
|
|
12
|
-
/* i18n*/ 'fulfillmentState.Cancelled',
|
|
13
|
-
],
|
|
14
|
-
paymentState: [
|
|
15
|
-
/* i18n*/ 'paymentState.Created',
|
|
16
|
-
/* i18n*/ 'paymentState.Authorized',
|
|
17
|
-
/* i18n*/ 'paymentState.Settled',
|
|
18
|
-
/* i18n*/ 'paymentState.Declined',
|
|
19
|
-
/* i18n*/ 'paymentState.Error',
|
|
20
|
-
/* i18n*/ 'paymentState.Cancelled',
|
|
21
|
-
],
|
|
22
|
-
refundState: [
|
|
23
|
-
/* i18n*/ 'paymentState.Pending',
|
|
24
|
-
/* i18n*/ 'paymentState.Settled',
|
|
25
|
-
/* i18n*/ 'paymentState.Failed',
|
|
26
|
-
],
|
|
27
|
-
orderState: [
|
|
28
|
-
/* i18n*/ 'orderState.Created',
|
|
29
|
-
/* i18n*/ 'orderState.Draft',
|
|
30
|
-
/* i18n*/ 'orderState.AddingItems',
|
|
31
|
-
/* i18n*/ 'orderState.Cancelled',
|
|
32
|
-
/* i18n*/ 'orderState.ArrangingPayment',
|
|
33
|
-
/* i18n*/ 'orderState.PaymentAuthorized',
|
|
34
|
-
/* i18n*/ 'orderState.PaymentSettled',
|
|
35
|
-
/* i18n*/ 'orderState.PartiallyShipped',
|
|
36
|
-
/* i18n*/ 'orderState.Shipped',
|
|
37
|
-
/* i18n*/ 'orderState.PartiallyDelivered',
|
|
38
|
-
/* i18n*/ 'orderState.Delivered',
|
|
39
|
-
/* i18n*/ 'orderState.Modifying',
|
|
40
|
-
/* i18n*/ 'orderState.ArrangingAdditionalPayment',
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/* i18n*/ 'refundReason.
|
|
45
|
-
/* i18n*/ 'refundReason.
|
|
46
|
-
/* i18n*/ 'refundReason.
|
|
47
|
-
/* i18n*/ 'refundReason.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/* i18n*/ 'fieldName.
|
|
52
|
-
/* i18n*/ 'fieldName.
|
|
53
|
-
/* i18n*/ 'fieldName.
|
|
54
|
-
/* i18n*/ 'fieldName.
|
|
55
|
-
/* i18n*/ 'fieldName.
|
|
56
|
-
/* i18n*/ 'fieldName.
|
|
57
|
-
/* i18n*/ 'fieldName.
|
|
58
|
-
/* i18n*/ 'fieldName.
|
|
59
|
-
/* i18n*/ 'fieldName.
|
|
60
|
-
/* i18n*/ 'fieldName.
|
|
61
|
-
/* i18n*/ 'fieldName.
|
|
62
|
-
/* i18n*/ 'fieldName.
|
|
63
|
-
/* i18n*/ 'fieldName.
|
|
64
|
-
/* i18n*/ 'fieldName.
|
|
65
|
-
/* i18n*/ 'fieldName.
|
|
66
|
-
/* i18n*/ 'fieldName.
|
|
67
|
-
/* i18n*/ 'fieldName.
|
|
68
|
-
/* i18n*/ 'fieldName.
|
|
69
|
-
/* i18n*/ 'fieldName.
|
|
70
|
-
/* i18n*/ 'fieldName.
|
|
71
|
-
/* i18n*/ 'fieldName.
|
|
72
|
-
/* i18n*/ 'fieldName.
|
|
73
|
-
/* i18n*/ 'fieldName.
|
|
74
|
-
/* i18n*/ 'fieldName.
|
|
75
|
-
/* i18n*/ 'fieldName.
|
|
76
|
-
/* i18n*/ 'fieldName.
|
|
77
|
-
/* i18n*/ 'fieldName.
|
|
78
|
-
/* i18n*/ 'fieldName.
|
|
79
|
-
/* i18n*/ 'fieldName.
|
|
80
|
-
/* i18n*/ 'fieldName.
|
|
81
|
-
/* i18n*/ 'fieldName.
|
|
82
|
-
/* i18n*/ 'fieldName.
|
|
83
|
-
/* i18n*/ 'fieldName.
|
|
84
|
-
/* i18n*/ 'fieldName.
|
|
85
|
-
/* i18n*/ 'fieldName.
|
|
86
|
-
/* i18n*/ 'fieldName.
|
|
87
|
-
/* i18n*/ 'fieldName.
|
|
88
|
-
/* i18n*/ 'fieldName.
|
|
89
|
-
/* i18n*/ 'fieldName.
|
|
90
|
-
/* i18n*/ 'fieldName.
|
|
91
|
-
/* i18n*/ 'fieldName.
|
|
92
|
-
/* i18n*/ 'fieldName.
|
|
93
|
-
/* i18n*/ 'fieldName.
|
|
94
|
-
/* i18n*/ 'fieldName.
|
|
95
|
-
/* i18n*/ 'fieldName.
|
|
96
|
-
/* i18n*/ 'fieldName.
|
|
97
|
-
/* i18n*/ 'fieldName.
|
|
98
|
-
/* i18n*/ 'fieldName.
|
|
99
|
-
/* i18n*/ 'fieldName.
|
|
100
|
-
/* i18n*/ 'fieldName.
|
|
101
|
-
/* i18n*/ 'fieldName.
|
|
102
|
-
/* i18n*/ 'fieldName.
|
|
103
|
-
/* i18n*/ 'fieldName.
|
|
104
|
-
/* i18n*/ 'fieldName.
|
|
105
|
-
/* i18n*/ 'fieldName.
|
|
106
|
-
/* i18n*/ 'fieldName.
|
|
107
|
-
/* i18n*/ 'fieldName.
|
|
108
|
-
/* i18n*/ 'fieldName.
|
|
109
|
-
/* i18n*/ 'fieldName.
|
|
110
|
-
/* i18n*/ 'fieldName.
|
|
111
|
-
/* i18n*/ 'fieldName.
|
|
112
|
-
/* i18n*/ 'fieldName.
|
|
113
|
-
/* i18n*/ 'fieldName.
|
|
114
|
-
/* i18n*/ 'fieldName.
|
|
115
|
-
/* i18n*/ 'fieldName.
|
|
116
|
-
/* i18n*/ 'fieldName.
|
|
117
|
-
|
|
118
|
-
|
|
1
|
+
/**
|
|
2
|
+
* These are strings that are not defined as string literals in the code (and therefore won't
|
|
3
|
+
* get extracted), but still need to have translations
|
|
4
|
+
*/
|
|
5
|
+
const commonI18nString = {
|
|
6
|
+
fulfillmentState: [
|
|
7
|
+
/* i18n*/ 'fulfillmentState.Created',
|
|
8
|
+
/* i18n*/ 'fulfillmentState.Pending',
|
|
9
|
+
/* i18n*/ 'fulfillmentState.Cancelled',
|
|
10
|
+
/* i18n*/ 'fulfillmentState.Shipped',
|
|
11
|
+
/* i18n*/ 'fulfillmentState.Delivered',
|
|
12
|
+
/* i18n*/ 'fulfillmentState.Cancelled',
|
|
13
|
+
],
|
|
14
|
+
paymentState: [
|
|
15
|
+
/* i18n*/ 'paymentState.Created',
|
|
16
|
+
/* i18n*/ 'paymentState.Authorized',
|
|
17
|
+
/* i18n*/ 'paymentState.Settled',
|
|
18
|
+
/* i18n*/ 'paymentState.Declined',
|
|
19
|
+
/* i18n*/ 'paymentState.Error',
|
|
20
|
+
/* i18n*/ 'paymentState.Cancelled',
|
|
21
|
+
],
|
|
22
|
+
refundState: [
|
|
23
|
+
/* i18n*/ 'paymentState.Pending',
|
|
24
|
+
/* i18n*/ 'paymentState.Settled',
|
|
25
|
+
/* i18n*/ 'paymentState.Failed',
|
|
26
|
+
],
|
|
27
|
+
orderState: [
|
|
28
|
+
/* i18n*/ 'orderState.Created',
|
|
29
|
+
/* i18n*/ 'orderState.Draft',
|
|
30
|
+
/* i18n*/ 'orderState.AddingItems',
|
|
31
|
+
/* i18n*/ 'orderState.Cancelled',
|
|
32
|
+
/* i18n*/ 'orderState.ArrangingPayment',
|
|
33
|
+
/* i18n*/ 'orderState.PaymentAuthorized',
|
|
34
|
+
/* i18n*/ 'orderState.PaymentSettled',
|
|
35
|
+
/* i18n*/ 'orderState.PartiallyShipped',
|
|
36
|
+
/* i18n*/ 'orderState.Shipped',
|
|
37
|
+
/* i18n*/ 'orderState.PartiallyDelivered',
|
|
38
|
+
/* i18n*/ 'orderState.Delivered',
|
|
39
|
+
/* i18n*/ 'orderState.Modifying',
|
|
40
|
+
/* i18n*/ 'orderState.ArrangingAdditionalPayment',
|
|
41
|
+
/* i18n*/ 'orderState.Validating',
|
|
42
|
+
],
|
|
43
|
+
refundReason: [
|
|
44
|
+
/* i18n*/ 'refundReason.CustomerRequest',
|
|
45
|
+
/* i18n*/ 'refundReason.NotAvailable',
|
|
46
|
+
/* i18n*/ 'refundReason.DamagedInShipping',
|
|
47
|
+
/* i18n*/ 'refundReason.WrongItem',
|
|
48
|
+
/* i18n*/ 'refundReason.Other',
|
|
49
|
+
],
|
|
50
|
+
fieldName: [
|
|
51
|
+
/* i18n*/ 'fieldName.attempts',
|
|
52
|
+
/* i18n*/ 'fieldName.availableCurrencyCodes',
|
|
53
|
+
/* i18n*/ 'fieldName.availableLanguageCodes',
|
|
54
|
+
/* i18n*/ 'fieldName.breadcrumbs',
|
|
55
|
+
/* i18n*/ 'fieldName.category',
|
|
56
|
+
/* i18n*/ 'fieldName.channels',
|
|
57
|
+
/* i18n*/ 'fieldName.children',
|
|
58
|
+
/* i18n*/ 'fieldName.code',
|
|
59
|
+
/* i18n*/ 'fieldName.couponCode',
|
|
60
|
+
/* i18n*/ 'fieldName.createdAt',
|
|
61
|
+
/* i18n*/ 'fieldName.currencyCode',
|
|
62
|
+
/* i18n*/ 'fieldName.customer',
|
|
63
|
+
/* i18n*/ 'fieldName.customerGroup',
|
|
64
|
+
/* i18n*/ 'fieldName.customers',
|
|
65
|
+
/* i18n*/ 'fieldName.customFields',
|
|
66
|
+
/* i18n*/ 'fieldName.data',
|
|
67
|
+
/* i18n*/ 'fieldName.defaultCurrencyCode',
|
|
68
|
+
/* i18n*/ 'fieldName.defaultLanguageCode',
|
|
69
|
+
/* i18n*/ 'fieldName.defaultShippingZone',
|
|
70
|
+
/* i18n*/ 'fieldName.defaultTaxZone',
|
|
71
|
+
/* i18n*/ 'fieldName.description',
|
|
72
|
+
/* i18n*/ 'fieldName.duration',
|
|
73
|
+
/* i18n*/ 'fieldName.emailAddress',
|
|
74
|
+
/* i18n*/ 'fieldName.enabled',
|
|
75
|
+
/* i18n*/ 'fieldName.endsAt',
|
|
76
|
+
/* i18n*/ 'fieldName.error',
|
|
77
|
+
/* i18n*/ 'fieldName.featuredAsset',
|
|
78
|
+
/* i18n*/ 'fieldName.firstName',
|
|
79
|
+
/* i18n*/ 'fieldName.fulfillmentHandlerCode',
|
|
80
|
+
/* i18n*/ 'fieldName.id',
|
|
81
|
+
/* i18n*/ 'fieldName.isDefault',
|
|
82
|
+
/* i18n*/ 'fieldName.isPrivate',
|
|
83
|
+
/* i18n*/ 'fieldName.isSettled',
|
|
84
|
+
/* i18n*/ 'fieldName.lastName',
|
|
85
|
+
/* i18n*/ 'fieldName.name',
|
|
86
|
+
/* i18n*/ 'fieldName.orderPlacedAt',
|
|
87
|
+
/* i18n*/ 'fieldName.parentId',
|
|
88
|
+
/* i18n*/ 'fieldName.perCustomerUsageLimit',
|
|
89
|
+
/* i18n*/ 'fieldName.permissions',
|
|
90
|
+
/* i18n*/ 'fieldName.position',
|
|
91
|
+
/* i18n*/ 'fieldName.price',
|
|
92
|
+
/* i18n*/ 'fieldName.priceWithTax',
|
|
93
|
+
/* i18n*/ 'fieldName.pricesIncludeTax',
|
|
94
|
+
/* i18n*/ 'fieldName.productVariants',
|
|
95
|
+
/* i18n*/ 'fieldName.progress',
|
|
96
|
+
/* i18n*/ 'fieldName.queueName',
|
|
97
|
+
/* i18n*/ 'fieldName.result',
|
|
98
|
+
/* i18n*/ 'fieldName.retries',
|
|
99
|
+
/* i18n*/ 'fieldName.seller',
|
|
100
|
+
/* i18n*/ 'fieldName.settledAt',
|
|
101
|
+
/* i18n*/ 'fieldName.shippingLines',
|
|
102
|
+
/* i18n*/ 'fieldName.sku',
|
|
103
|
+
/* i18n*/ 'fieldName.slug',
|
|
104
|
+
/* i18n*/ 'fieldName.startedAt',
|
|
105
|
+
/* i18n*/ 'fieldName.startsAt',
|
|
106
|
+
/* i18n*/ 'fieldName.state',
|
|
107
|
+
/* i18n*/ 'fieldName.stockLevels',
|
|
108
|
+
/* i18n*/ 'fieldName.token',
|
|
109
|
+
/* i18n*/ 'fieldName.total',
|
|
110
|
+
/* i18n*/ 'fieldName.totalWithTax',
|
|
111
|
+
/* i18n*/ 'fieldName.type',
|
|
112
|
+
/* i18n*/ 'fieldName.updatedAt',
|
|
113
|
+
/* i18n*/ 'fieldName.usageLimit',
|
|
114
|
+
/* i18n*/ 'fieldName.user',
|
|
115
|
+
/* i18n*/ 'fieldName.value',
|
|
116
|
+
/* i18n*/ 'fieldName.valueList',
|
|
117
|
+
/* i18n*/ 'fieldName.zone',
|
|
118
|
+
],
|
|
119
|
+
};
|
package/src/i18n/locales/el.po
CHANGED
|
@@ -358,6 +358,11 @@ msgstr "Τροποποιείται"
|
|
|
358
358
|
msgid "orderState.ArrangingAdditionalPayment"
|
|
359
359
|
msgstr "Διευθέτηση Συμπληρωματικής Πληρωμής"
|
|
360
360
|
|
|
361
|
+
#. js-lingui-explicit-id
|
|
362
|
+
#: src/i18n/common-strings.ts:41
|
|
363
|
+
msgid "orderState.Validating"
|
|
364
|
+
msgstr "Αναμονή Επιβεβαίωσης"
|
|
365
|
+
|
|
361
366
|
#. js-lingui-explicit-id
|
|
362
367
|
#: src/i18n/common-strings.ts:43
|
|
363
368
|
msgid "refundReason.CustomerRequest"
|