generated from polymech/site-template
cleanup
This commit is contained in:
parent
dbf2fb27cd
commit
b1cc32847c
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
{
|
||||
"shop":{
|
||||
"title": "Shop",
|
||||
"description": "",
|
||||
"items":"${OSR_ROOT}/products/products/**/config.json",
|
||||
"root":"${OSR_ROOT}/products"
|
||||
}
|
||||
}
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
---
|
||||
<Layout frontmatter={page.data.item} {...rest}/>
|
||||
|
||||
<Layout frontmatter={page.data.item} {...rest} />
|
||||
|
||||
@ -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";
|
||||
---
|
||||
|
||||
Loading…
Reference in New Issue
Block a user