Merge pull request 'Исправление ссылок навбара' (#11) from feature/9-blog-nav-links into master
Reviewed-on: #11
This commit is contained in:
commit
803714ad6a
5 changed files with 928 additions and 1442 deletions
1
.npmrc
1
.npmrc
|
|
@ -1 +1,2 @@
|
|||
engine-strict=true
|
||||
min-release-age=7
|
||||
2312
package-lock.json
generated
2312
package-lock.json
generated
File diff suppressed because it is too large
Load diff
42
package.json
42
package.json
|
|
@ -5,48 +5,48 @@
|
|||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "vite build",
|
||||
"postbuild": "npx svelte-sitemap --domain https://teasanctuary.ru",
|
||||
"postbuild": "npx svelte-sitemap",
|
||||
"preview": "vite preview",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify/css-svelte": "^1.0.0",
|
||||
"@iconify/json": "^2.2.439",
|
||||
"@iconify/css-svelte": "^1.0.1",
|
||||
"@iconify/json": "^2.2.461",
|
||||
"@react2svelte/swipeable": "^0.1.4",
|
||||
"@svelte-put/dragscroll": "^4.0.0",
|
||||
"@sveltejs/adapter-auto": "^7.0.0",
|
||||
"@sveltejs/adapter-auto": "^7.0.1",
|
||||
"@sveltejs/adapter-static": "^3.0.10",
|
||||
"@sveltejs/kit": "^2.50.2",
|
||||
"@sveltejs/kit": "^2.57.1",
|
||||
"@tailwindcss/typography": "^0.5.19",
|
||||
"@tailwindcss/vite": "^4.1.18",
|
||||
"@types/node": "^25.2.3",
|
||||
"@vitejs/plugin-legacy": "^7.2.1",
|
||||
"autoprefixer": "^10.4.24",
|
||||
"baseline-browser-mapping": "^2.9.19",
|
||||
"eslint": "^9.39.2",
|
||||
"@tailwindcss/vite": "^4.2.2",
|
||||
"@types/node": "^25.6.0",
|
||||
"@vitejs/plugin-legacy": "^8.0.1",
|
||||
"autoprefixer": "^10.4.27",
|
||||
"baseline-browser-mapping": "^2.10.18",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-svelte": "^3.15.0",
|
||||
"mdsvex": "^0.12.6",
|
||||
"eslint-plugin-svelte": "^3.17.0",
|
||||
"mdsvex": "^0.12.7",
|
||||
"mdsvex-relative-images": "^2.0.0",
|
||||
"postcss": "^8.5.6",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier-plugin-svelte": "^3.4.1",
|
||||
"postcss": "^8.5.9",
|
||||
"prettier": "^3.8.2",
|
||||
"prettier-plugin-svelte": "^3.5.1",
|
||||
"prettier-plugin-tailwindcss": "^0.7.2",
|
||||
"svelte": "^5.50.2",
|
||||
"svelte-check": "^4.3.6",
|
||||
"svelte": "^5.55.3",
|
||||
"svelte-check": "^4.4.6",
|
||||
"svelte-disable-preload": "^0.0.3",
|
||||
"svelte-resize-observer-action": "^0.0.4",
|
||||
"svelte-sitemap": "^2.7.1",
|
||||
"svelte-sitemap": "^3.0.1",
|
||||
"sveltekit-autoimport": "^1.8.2",
|
||||
"tailwindcss": "^4.0.9",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.9.3",
|
||||
"unplugin-icons": "^23.0.1",
|
||||
"vite": "^7.3.1"
|
||||
"vite": "^8.0.8"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@formatjs/intl-durationformat": "^0.10.1"
|
||||
"@formatjs/intl-durationformat": "^0.10.3"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@
|
|||
class="flex shrink-0 flex-row gap-2 bg-slate-100 not-landscape:justify-around not-landscape:overflow-x-auto not-landscape:sm:px-2 landscape:flex-col landscape:overflow-y-auto landscape:sm:py-2"
|
||||
>
|
||||
{#each routes as route (route.href)}
|
||||
<a class="nav-button {isActive(route.href) ? 'active' : ''}" href={route.href}>
|
||||
<a
|
||||
class="nav-button {isActive(route.href) ? 'active' : ''}"
|
||||
href={route.href}
|
||||
target="_self"
|
||||
>
|
||||
<div class="p-1">
|
||||
<HoverIcon
|
||||
src={route.icon}
|
||||
|
|
|
|||
9
svelte-sitemap.config.ts
Normal file
9
svelte-sitemap.config.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// svelte-sitemap.config.ts
|
||||
import type { OptionsSvelteSitemap } from 'svelte-sitemap';
|
||||
|
||||
const config: OptionsSvelteSitemap = {
|
||||
domain: 'https://teasanctuary.ru',
|
||||
trailingSlashes: true,
|
||||
};
|
||||
|
||||
export default config;
|
||||
Loading…
Add table
Add a link
Reference in a new issue