From b1cc32847c76f5dbe88146a9879a3d0efd9adced Mon Sep 17 00:00:00 2001 From: babayaga Date: Sat, 27 Dec 2025 08:38:22 +0100 Subject: [PATCH] cleanup --- src/app/menu.json | 59 ----------------------- src/app/profile.json | 41 ---------------- src/app/social.json | 24 --------- src/app/stores.json | 8 --- src/app/theme.json | 44 ----------------- src/pages/[locale]/howtos/[...path].astro | 34 ++++++------- src/pages/index.astro | 1 - 7 files changed, 16 insertions(+), 195 deletions(-) delete mode 100644 src/app/menu.json delete mode 100644 src/app/profile.json delete mode 100644 src/app/social.json delete mode 100644 src/app/stores.json delete mode 100644 src/app/theme.json diff --git a/src/app/menu.json b/src/app/menu.json deleted file mode 100644 index 2214f16..0000000 --- a/src/app/menu.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "main": [ - { - "name": "Home", - "url": "/" - }, - { - "name": "Products", - "url": "/products" - }, - { - "name": "Pages", - "url": "", - "hasChildren": true, - "children": [ - { - "name": "About", - "url": "/about" - }, - { - "name": "Contact", - "url": "/contact" - }, - { - "name": "404 Page", - "url": "/404" - } - ] - }, - { - "name": "Contact", - "url": "/contact" - } - ], - "footer": [ - { - "name": "About", - "url": "/about" - }, - { - "name": "Products", - "url": "/products" - }, - { - "name": "Contact", - "url": "/contact" - } - ], - "footerCopyright": [ - { - "name": "Privacy & Policy", - "url": "/privacy-policy" - }, - { - "name": "Terms of Service", - "url": "/terms-services" - } - ] -} diff --git a/src/app/profile.json b/src/app/profile.json deleted file mode 100644 index 2b8189d..0000000 --- a/src/app/profile.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "includes": [], - "variables": { - "PRODUCT_ROOT": "${root}/${product}/", - "abs_url": "https://assets.osr-plastic.org", - "CACHE": "${root}/cache/", - "CACHE_URL": "${abs_url}/cache/", - "GIT_REPO": "https://git.polymech.io/", - "OSR_MACHINES_ASSETS_URL": "https://assets.osr-plastic.org", - "PRODUCTS_ASSETS_URL": "https://assets.osr-plastic.org/${product_rel}", - "OSR_FILES_WEB": "https://files.polymech.info/files/machines", - "PRODUCTS_FILES_URL": "${OSR_FILES_WEB}/${product_rel}", - "DISCORD": "https://discord.gg/s8K7yKwBRc" - }, - "env": { - "astro-release": { - "includes": [ - "${PRODUCT_ROOT}" - ], - "variables": { - "OSR_MACHINES_ASSETS_URL": "https://assets.osr-plastic.org/" - } - }, - "astro-debug": { - "includes": [ - "${PRODUCT_ROOT}" - ], - "variables": { - "OSR_MACHINES_ASSETS_URL": "https://assets.osr-plastic.org", - "showCart": false, - "showPrice": false, - "showResources": false, - "showShipping": false, - "showPaymentTerms": false, - "showHowtos": false, - "showRenderings": true, - "debug": true - } - } - } -} \ No newline at end of file diff --git a/src/app/social.json b/src/app/social.json deleted file mode 100644 index 733bce2..0000000 --- a/src/app/social.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "main": [ - { - "name": "facebook", - "icon": "FaFacebookF", - "link": "https://www.facebook.com/themefisher" - }, - { - "name": "twitter", - "icon": "FaXTwitter", - "link": "https://x.com/themefisher" - }, - { - "name": "linkedin", - "icon": "FaLinkedinIn", - "link": "https://bd.linkedin.com/company/themefisher" - }, - { - "name": "github", - "icon": "FaGithub", - "link": "https://github.com/themefisher/astrofront" - } - ] -} diff --git a/src/app/stores.json b/src/app/stores.json deleted file mode 100644 index 4a446b9..0000000 --- a/src/app/stores.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "shop":{ - "title": "Shop", - "description": "", - "items":"${OSR_ROOT}/products/products/**/config.json", - "root":"${OSR_ROOT}/products" - } -} \ No newline at end of file diff --git a/src/app/theme.json b/src/app/theme.json deleted file mode 100644 index 98e2abd..0000000 --- a/src/app/theme.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "colors": { - "default": { - "theme_color": { - "primary": "#121212", - "body": "#fff", - "border": "#eaeaea", - "theme_light": "#f2f2f2", - "theme_dark": "#000" - }, - "text_color": { - "default": "#444", - "dark": "#000", - "light": "#666" - } - }, - "darkmode": { - "theme_color": { - "primary": "#fff", - "body": "#252525", - "border": "#3E3E3E", - "theme_light": "#222222", - "theme_dark": "#000" - }, - "text_color": { - "default": "#DDD", - "dark": "#fff", - "light": "#DDD" - } - } - }, - "fonts": { - "font_family": { - "primary": "Karla:wght@400;500;700", - "primary_type": "sans-serif", - "secondary": "", - "secondary_type": "" - }, - "font_size": { - "base": "16", - "scale": "1.2" - } - } -} diff --git a/src/pages/[locale]/howtos/[...path].astro b/src/pages/[locale]/howtos/[...path].astro index af1466c..d9ffcaa 100644 --- a/src/pages/[locale]/howtos/[...path].astro +++ b/src/pages/[locale]/howtos/[...path].astro @@ -1,14 +1,12 @@ --- -import Layout from '@/components/howtos/Detail.astro' -import { getCollection } from 'astro:content' +import Layout from "@/components/howtos/Detail.astro"; +import { getCollection } from "astro:content"; +import { LANGUAGES_PROD as LANGUAGES } from "config/config.js"; -import { LANGUAGES_PROD as LANGUAGES } from "config/config.js" - -export async function getStaticPaths() -{ - const view = 'howtos' - const items = await getCollection(view) - const all: unknown[] = [] +export async function getStaticPaths() { + const view = "howtos"; + const items = await getCollection(view); + const all: unknown[] = []; LANGUAGES.forEach((lang) => { items.forEach((product) => { all.push({ @@ -20,14 +18,14 @@ export async function getStaticPaths() page: product, locale: lang, path: product.id, - view - } - }) - }) - }) - return all - + view, + }, + }); + }); + }); + return all; } -const { page:page, ...rest } = Astro.props +const { page: page, ...rest } = Astro.props; --- - \ No newline at end of file + + diff --git a/src/pages/index.astro b/src/pages/index.astro index ac1e510..bf4ccd0 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -8,7 +8,6 @@ import Howtos from "@/components/cta/CtaHowtos.astro"; import KB from "@/components/cta/CtaKB.astro"; import Directory from "@/components/cta/CtaDirectory.astro"; import Shop from "@/components/cta/CtaShop.astro"; - const allProducts = await getCollection("store"); const locale = Astro.currentLocale || "en"; ---