cleanup, from gold to trash :)
This commit is contained in:
parent
e6c461ae6a
commit
aa567fbb3e
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
{
|
||||
"_variables": {
|
||||
"lastUpdateCheck": 1741718719942
|
||||
"lastUpdateCheck": 1743405200411
|
||||
}
|
||||
}
|
||||
@ -53,15 +53,7 @@ export default defineConfig({
|
||||
algorithm: 'gzip', // You can also use 'brotliCompress' for Brotli
|
||||
threshold: 1024, // Compress files larger than 1KB
|
||||
deleteOriginFile: false, // Keep original files (optional)
|
||||
}),
|
||||
{
|
||||
name: 'auto-import-img',
|
||||
transform(code, id) {
|
||||
if (id.endsWith('.astro') || id.endsWith('.mdx')) {
|
||||
// return `import { Img } from 'imagetools/components';\n` + code;
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
],
|
||||
build: {
|
||||
target: 'esnext',
|
||||
|
||||
20
package-lock.json
generated
20
package-lock.json
generated
@ -56,7 +56,7 @@
|
||||
"p-map": "^7.0.3",
|
||||
"picomatch": "^4.0.2",
|
||||
"potrace": "^2.1.8",
|
||||
"react-jsx-parser": "^2.3.0",
|
||||
"react-jsx-parser": "^2.4.0",
|
||||
"reading-time": "^1.5.0",
|
||||
"rehype-accessible-emojis": "^0.3.2",
|
||||
"rehype-stringify": "^10.0.1",
|
||||
@ -150,7 +150,14 @@
|
||||
},
|
||||
"../astro-components/packages/polymech": {
|
||||
"name": "@polymech/astro-base",
|
||||
"version": "0.5.6"
|
||||
"version": "0.5.6",
|
||||
"dependencies": {
|
||||
"@polymech/cad": "file:../../../polymech-mono/packages/cad",
|
||||
"@polymech/fs": "file:../../../polymech-mono/packages/fs",
|
||||
"@polymech/i18n": "file:../../../polymech-mono/packages/i18n",
|
||||
"@polymech/kbot-d": "file:../../../polymech-mono/packages/kbot",
|
||||
"@polymech/log": "file:../../../polymech-mono/packages/log"
|
||||
}
|
||||
},
|
||||
"../polymech-mono/packages/cache": {
|
||||
"name": "@polymech/cache",
|
||||
@ -333,8 +340,9 @@
|
||||
"marked": "14.1.4",
|
||||
"marked-terminal": "7.2.1",
|
||||
"mime-types": "2.1.35",
|
||||
"openai": "4.85.3",
|
||||
"openai": "4.87.4",
|
||||
"p-map": "7.0.3",
|
||||
"ts-retry": "6.0.0",
|
||||
"tslog": "^4.9.3",
|
||||
"yargs": "17.7.2",
|
||||
"zod": "3.24.2"
|
||||
@ -12304,9 +12312,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/react-jsx-parser": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/react-jsx-parser/-/react-jsx-parser-2.3.0.tgz",
|
||||
"integrity": "sha512-kCCuiOpvqlzsCIpVqmfqLIs60LUFCjBq3rfZbNPgKKUejghiypO3usiGyJynYS4SMJrdULmHfeYN3vx8NK+DdQ==",
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/react-jsx-parser/-/react-jsx-parser-2.4.0.tgz",
|
||||
"integrity": "sha512-ugh/99kuUTec2C/zrznDU/4X5avEYlkf0tOkicQfQq151ERTsga0mxM7uXhV7PEPV+6nfwKV1rzWIRhzsN1uLQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"acorn": "^8.12.1",
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
"@astrolib/seo": "^1.0.0-beta.8",
|
||||
"@jsdevtools/rehype-toc": "^3.0.2",
|
||||
"@playwright/test": "^1.50.1",
|
||||
"@polymech/astro-base": "file:../astro-components/packages/polymech",
|
||||
"@polymech/astro-components": "file:../astro-components/packages/astro-components",
|
||||
"@polymech/cache": "file:../polymech-mono/packages/cache",
|
||||
"@polymech/cad": "file:../polymech-mono/packages/cad",
|
||||
@ -68,7 +69,7 @@
|
||||
"p-map": "^7.0.3",
|
||||
"picomatch": "^4.0.2",
|
||||
"potrace": "^2.1.8",
|
||||
"react-jsx-parser": "^2.3.0",
|
||||
"react-jsx-parser": "^2.4.0",
|
||||
"reading-time": "^1.5.0",
|
||||
"rehype-accessible-emojis": "^0.3.2",
|
||||
"rehype-stringify": "^10.0.1",
|
||||
|
||||
@ -3,8 +3,6 @@ import { loader } from './model/component.js'
|
||||
import { ComponentConfigSchema } from '@polymech/commons/component'
|
||||
import { RETAIL_PRODUCT_BRANCH, PROJECTS_BRANCH } from 'config/config.js'
|
||||
|
||||
import { glob } from 'astro/loaders'
|
||||
|
||||
const store = defineCollection({
|
||||
loader: loader(RETAIL_PRODUCT_BRANCH) as any,
|
||||
schema: ComponentConfigSchema.passthrough(),
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
---
|
||||
import BaseLayout from "@/layouts/BaseLayout.astro";
|
||||
import Contact from "@/components/forms/Contact.astro";
|
||||
import Wrapper from "@/components/containers/Wrapper.astro";
|
||||
---
|
||||
<BaseLayout>
|
||||
<Wrapper>
|
||||
<Contact />
|
||||
|
||||
</Wrapper>
|
||||
</BaseLayout>
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
import rss from '@astrojs/rss';
|
||||
import { getCollection } from 'astro:content'
|
||||
import sanitizeHtml from 'sanitize-html';
|
||||
import MarkdownIt from 'markdown-it';
|
||||
const parser = new MarkdownIt()
|
||||
import { RSS_CONFIG } from '../app/config'
|
||||
|
||||
export async function GET(context) {
|
||||
const blog = await getCollection('posts')
|
||||
const store = await getCollection('store')
|
||||
const all = [ ...blog ]
|
||||
return rss({
|
||||
site: context.site,
|
||||
items: all.map((post) => ({
|
||||
link: `/blog/${post.id}/`,
|
||||
content: sanitizeHtml(parser.render(post.body), {
|
||||
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img'])
|
||||
}),
|
||||
...post.data,
|
||||
})),
|
||||
...RSS_CONFIG
|
||||
});
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
---
|
||||
import { Checkout, foo } from "@polymech/astro-components"
|
||||
import { foo, i18n as Translate } from "@polymech/astro-base"
|
||||
import { Img } from 'imagetools/components';
|
||||
---
|
||||
{foo}
|
||||
<Checkout />
|
||||
<Translate language="es">Hallo</Translate>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user