{process.env.NEXT_PUBLIC_APP_NAME}
diff --git a/showcases/patternhub/components/src/tsconfig.json b/showcases/patternhub/components/src/tsconfig.json
deleted file mode 100644
index ad8e8da3da5..00000000000
--- a/showcases/patternhub/components/src/tsconfig.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "compilerOptions": {
- "strict": false,
- "allowUnreachableCode": false,
- "allowSyntheticDefaultImports": true,
- "declaration": true,
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "esModuleInterop": true,
- "lib": ["dom", "es2015"],
- "module": "es2015",
- "moduleResolution": "node",
- "noImplicitAny": false,
- "noImplicitReturns": false,
- "noUnusedLocals": false,
- "noUnusedParameters": false,
- "outDir": "dist",
- "removeComments": false,
- "sourceMap": true,
- "jsx": "react",
- "target": "ES6"
- },
- "include": ["**/*.ts", "**/*.tsx"],
- "exclude": ["node_modules", "**/*.spec.tsx", "dist"],
- "compileOnSave": false,
- "buildOnSave": false
-}
diff --git a/showcases/patternhub/package.json b/showcases/patternhub/package.json
index a51b4a3cab0..dd0d55cc13b 100644
--- a/showcases/patternhub/package.json
+++ b/showcases/patternhub/package.json
@@ -13,10 +13,10 @@
"compile:03_copy-docs": "cpr ../../docs ./public/docs -o",
"compile:04_components": "node scripts/esbuild-generate.mjs",
"compile:05_run": "node generated.js",
+ "compile:06_replace_base": "node scripts/fix-base-path.js",
"dev": "cross-env NEXT_PUBLIC_BASE_PATH=/mono/sub npm-run-all compile -p open next:dev",
"lint": "next lint",
"next:dev": "next dev",
- "next:start": "next start",
"open": "open-cli http://localhost:3000/mono/sub",
"prebuild:app": "cpr ../../node_modules/iframe-resizer/js/ public/iframe-resizer -o",
"start": "cross-env NEXT_PUBLIC_BASE_PATH=/mono/sub npm-run-all compile next:dev"
@@ -44,6 +44,6 @@
"iframe-resizer": "^4.3.9",
"open-cli": "^8.0.0",
"sass": "^1.74.1",
- "typescript": "5.4.4"
+ "typescript": "5.4.5"
}
}
diff --git a/showcases/patternhub/public/assets/images/db_logo.svg b/showcases/patternhub/public/assets/images/db_logo.svg
new file mode 100644
index 00000000000..02278bee1b7
--- /dev/null
+++ b/showcases/patternhub/public/assets/images/db_logo.svg
@@ -0,0 +1,4 @@
+
diff --git a/showcases/patternhub/public/images/db_logo.svg b/showcases/patternhub/public/images/db_logo.svg
deleted file mode 100644
index e188143af80..00000000000
--- a/showcases/patternhub/public/images/db_logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/showcases/patternhub/public/site.webmanifest b/showcases/patternhub/public/site.webmanifest
index c5b4ef35c07..34a49346fc0 100644
--- a/showcases/patternhub/public/site.webmanifest
+++ b/showcases/patternhub/public/site.webmanifest
@@ -3,7 +3,7 @@
"name": "",
"icons": [
{
- "src": "/images/db_logo.svg",
+ "src": "/assets/images/db_logo.svg",
"type": "image/svg",
"sizes": "192x192"
}
diff --git a/showcases/patternhub/scripts/fix-base-path.js b/showcases/patternhub/scripts/fix-base-path.js
new file mode 100644
index 00000000000..93f6900ac46
--- /dev/null
+++ b/showcases/patternhub/scripts/fix-base-path.js
@@ -0,0 +1,8 @@
+import Replace from 'replace-in-file';
+
+const option = {
+ files: './pages/components/**/*.tsx',
+ from: 'import.meta.env.BASE_URL',
+ to: 'process.env.NEXT_PUBLIC_BASE_PATH'
+};
+Replace.replaceInFileSync(option);
diff --git a/showcases/patternhub/scripts/get-properties-file.js b/showcases/patternhub/scripts/get-properties-file.js
index b5676835132..07c582c1474 100644
--- a/showcases/patternhub/scripts/get-properties-file.js
+++ b/showcases/patternhub/scripts/get-properties-file.js
@@ -60,14 +60,19 @@ const getPropertiesFile = ({ displayName, description, props }) => {
'No description'
} `;
propertyTable += `| ${property.tsType.type ?? property.tsType.name} `;
- propertyTable += `| ${
- options
- ? `${options.replaceAll(
- '',
- ''
- )}
`
- : ''
- } |\n`;
+
+ if (['icon', 'iconAfter', 'messageIcon'].includes(propertyKey)) {
+ propertyTable += `| [IconTypes](https://db-ui.github.io/mono/review/main/foundations/icons/overview) |\n`;
+ } else {
+ propertyTable += `| ${
+ options
+ ? `${options.replaceAll(
+ '',
+ ''
+ )}
`
+ : ''
+ } |\n`;
+ }
}
return `
diff --git a/showcases/patternhub/scripts/utils.js b/showcases/patternhub/scripts/utils.js
index 654b059a100..73aded4e121 100644
--- a/showcases/patternhub/scripts/utils.js
+++ b/showcases/patternhub/scripts/utils.js
@@ -10,7 +10,9 @@ export const getUnionElements = (options, elements) => {
options.push(
element.name === 'literal'
? element.value
- : getUnionElements(options, element.elements)
+ : element.elements
+ ? getUnionElements(options, element.elements)
+ : element.name
);
}
}
diff --git a/showcases/react-showcase/package.json b/showcases/react-showcase/package.json
index 51392b2f50d..501d6c702e2 100644
--- a/showcases/react-showcase/package.json
+++ b/showcases/react-showcase/package.json
@@ -23,7 +23,7 @@
"@types/react-dom": "^18.2.24",
"@vitejs/plugin-react": "^4.2.1",
"cross-env": "^7.0.3",
- "typescript": "^5.4.4",
+ "typescript": "^5.4.5",
"vite": "^5.2.8"
}
}
diff --git a/showcases/react-showcase/public/assets/images/db_logo.svg b/showcases/react-showcase/public/assets/images/db_logo.svg
index bfea69802a5..02278bee1b7 100644
--- a/showcases/react-showcase/public/assets/images/db_logo.svg
+++ b/showcases/react-showcase/public/assets/images/db_logo.svg
@@ -1,4 +1,4 @@
diff --git a/showcases/vue-showcase/package.json b/showcases/vue-showcase/package.json
index 5caf5064874..4b9721d12e4 100644
--- a/showcases/vue-showcase/package.json
+++ b/showcases/vue-showcase/package.json
@@ -18,8 +18,8 @@
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"cross-env": "^7.0.3",
- "typescript": "^5.4.4",
+ "typescript": "^5.4.5",
"vite": "^5.2.8",
- "vue-tsc": "^2.0.11"
+ "vue-tsc": "^2.0.12"
}
}
diff --git a/showcases/vue-showcase/public/assets/images/db_logo.svg b/showcases/vue-showcase/public/assets/images/db_logo.svg
index bfea69802a5..02278bee1b7 100644
--- a/showcases/vue-showcase/public/assets/images/db_logo.svg
+++ b/showcases/vue-showcase/public/assets/images/db_logo.svg
@@ -1,4 +1,4 @@