Skip to content

chore: fixed docs examples #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular-devkit/build-angular:browser",
"options": {
"sourceMap": true,
"outputPath": {
"base": "./dist/releases/koobiq-docs"
},
"outputPath": "./dist/releases/koobiq-docs",
"index": "apps/docs/src/index.html",
"polyfills": [
"apps/docs/src/polyfills.ts"
],
"main": "apps/docs/src/main.ts",
"polyfills": "apps/docs/src/polyfills.ts",
"tsConfig": "apps/docs/tsconfig.app.json",
"assets": [
{
Expand Down Expand Up @@ -77,15 +74,16 @@
}
],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"optimization": false,
"namedChunks": true,
"allowedCommonJsDependencies": [
"highlight.js",
"@messageformat/core",
"ua-parser-js"
],
"browser": "apps/docs/src/main.ts"
]
},
"configurations": {
"development": {
Expand All @@ -100,7 +98,7 @@
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "7mb"
"maximumError": "5mb"
}
]
},
Expand All @@ -121,12 +119,14 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"aot": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "6mb"
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ export class DocsLiveExampleViewer {
// source maps (which would never be loaded), we instruct Webpack to exclude source map
// files. More details: https://webpack.js.org/api/module-methods/#magic-comments.
// module.importSpecifier
const moduleExports: any = await import(
/* @vite-ignore */
`@koobiq/docs-examples/fesm2022/${module.importPath}`
);
const moduleExports = await import(`@koobiq/docs-examples/fesm2022/${module.importPath}.mjs`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

без указания экстеншена не собирается

this.exampleComponentType = moduleExports[componentName];
// The components examples package is built with Ivy. This means that no factory files are
// generated. To retrieve the factory of the AOT compiled module, we simply pass the module
Expand Down
24 changes: 12 additions & 12 deletions apps/docs/src/assets/stackblitz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/animations": "^17.2.0",
"@angular/cdk": "^17.2.0",
"@angular/common": "^17.2.0",
"@angular/compiler": "^17.2.0",
"@angular/core": "^17.2.0",
"@angular/forms": "^17.2.0",
"@angular/platform-browser": "^17.2.0",
"@angular/platform-browser-dynamic": "^17.2.0",
"@angular/router": "^17.2.0",
"@angular/animations": "^18.2.6",
"@angular/cdk": "^18.2.6",
"@angular/common": "^18.2.6",
"@angular/compiler": "^18.2.6",
"@angular/core": "^18.2.6",
"@angular/forms": "^18.2.6",
"@angular/platform-browser": "^18.2.6",
"@angular/platform-browser-dynamic": "^18.2.6",
"@angular/router": "^18.2.6",
"@koobiq/cdk": "${version}",
"@koobiq/components": "${version}",
"@koobiq/icons": "^9.0.0",
Expand All @@ -38,9 +38,9 @@
"zone.js": "^0.14.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.2.0",
"@angular/cli": "^17.2.0",
"@angular/compiler-cli": "^17.2.0",
"@angular-devkit/build-angular": "^18.2.6",
"@angular/cli": "^18.2.6",
"@angular/compiler-cli": "^18.2.6",
"@types/luxon": "^3.4.2",
"@types/node": "^18.19.0",
"typescript": "~5.3.3"
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/assets/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"url": "https://v16.koobiq.io/"
},
"17": {
"version": "17.0.0-rc.3",
"date": "2024-05-17T08:48:51.998Z",
"version": "17.8.0",
"date": "2024-09-25T15:57:49.001Z",
"url": "https://v17.koobiq.io/"
},
"next": {
Expand Down
8 changes: 4 additions & 4 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"hosting": [
{
"target": "stable",
"public": "dist/releases/koobiq-docs/browser",
"public": "dist/releases/koobiq-docs",
"cleanUrls": true,
"rewrites": [
{
Expand Down Expand Up @@ -35,7 +35,7 @@
},
{
"key": "Content-Security-Policy",
"value": "upgrade-insecure-requests; default-src 'self'; font-src 'self' https://fonts.gstatic.com https://rsms.me; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://rsms.me; img-src 'self' *; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://mc.yandex.ru; child-src 'self' blob:; connect-src 'self' https://koobiq.io https://next.koobiq.io https://mc.yandex.ru https://*.algolia.net https://*.algolianet.com https://*.algolia.io;"
"value": "upgrade-insecure-requests; default-src 'self'; font-src 'self' https://fonts.gstatic.com https://rsms.me; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://rsms.me; img-src 'self' *; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://mc.yandex.ru; child-src 'self' blob:; connect-src 'self' https://koobiq.io https://*.koobiq.io https://mc.yandex.ru https://*.algolia.net https://*.algolianet.com https://*.algolia.io;"
}
]
},
Expand Down Expand Up @@ -87,7 +87,7 @@
},
{
"target": "next",
"public": "dist/releases/koobiq-docs/browser",
"public": "dist/releases/koobiq-docs",
"cleanUrls": true,
"rewrites": [
{
Expand Down Expand Up @@ -124,7 +124,7 @@
},
{
"key": "Content-Security-Policy",
"value": "upgrade-insecure-requests; default-src 'self'; font-src 'self' https://fonts.gstatic.com https://rsms.me; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://rsms.me; img-src 'self' *; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://mc.yandex.ru; child-src 'self' blob:; connect-src 'self' https://koobiq.io https://mc.yandex.ru https://*.algolia.net https://*.algolianet.com https://*.algolia.io;"
"value": "upgrade-insecure-requests; default-src 'self'; font-src 'self' https://fonts.gstatic.com https://rsms.me; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://rsms.me; img-src 'self' *; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://mc.yandex.ru; child-src 'self' blob:; connect-src 'self' https://koobiq.io https://*.koobiq.io https://mc.yandex.ru https://*.algolia.net https://*.algolianet.com https://*.algolia.io;"
}
]
},
Expand Down