From 0b74ae5b4f30e7d0d8dd2af54e1a9f2431aec1db Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Mon, 5 Jun 2023 16:57:02 +0200 Subject: [PATCH] refactor: eliminate is:inline by using :global() (#23) --- package-lock.json | 27 ++++++++++++- package.json | 3 +- src/components/AddressBar.astro | 40 ++++++++++--------- src/components/Post.astro | 70 ++++++++++++++++++--------------- 4 files changed, 86 insertions(+), 54 deletions(-) diff --git a/package-lock.json b/package-lock.json index 59897e7..8b5a877 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,18 @@ { - "name": "@ayoayco/cozy", + "name": "@ayco/cozy", "version": "0.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { + "name": "@ayco/cozy", "version": "0.1.4", "dependencies": { "@astro-reactive/form": "^0.8.1", "@astro-reactive/validator": "^0.3.4", "@astrojs/netlify": "^2.2.2", - "@extractus/article-extractor": "^7.2.15" + "@extractus/article-extractor": "^7.2.15", + "sass": "^1.62.1" }, "devDependencies": { "astro": "^2.5.7" @@ -2901,6 +2903,11 @@ } ] }, + "node_modules/immutable": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz", + "integrity": "sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==" + }, "node_modules/import-meta-resolve": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-2.2.2.tgz", @@ -5052,6 +5059,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/sass": { + "version": "1.62.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.62.1.tgz", + "integrity": "sha512-NHpxIzN29MXvWiuswfc1W3I0N8SXBd8UR26WntmDlRYf0bSADnwnOjsyMZ3lMezSlArD33Vs3YFhp7dWvL770A==", + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/sass-formatter": { "version": "0.7.6", "resolved": "https://registry.npmjs.org/sass-formatter/-/sass-formatter-0.7.6.tgz", diff --git a/package.json b/package.json index 9c0b99e..2ac87e2 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "@astro-reactive/form": "^0.8.1", "@astro-reactive/validator": "^0.3.4", "@astrojs/netlify": "^2.2.2", - "@extractus/article-extractor": "^7.2.15" + "@extractus/article-extractor": "^7.2.15", + "sass": "^1.62.1" } } diff --git a/src/components/AddressBar.astro b/src/components/AddressBar.astro index 840f624..bd62d6f 100644 --- a/src/components/AddressBar.astro +++ b/src/components/AddressBar.astro @@ -40,43 +40,45 @@ const form = new FormGroup([ - diff --git a/src/components/Post.astro b/src/components/Post.astro index 8f6221a..f7a91ad 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -24,45 +24,51 @@ const datePublished = ) } -