Skip to content

Commit 756e0dd

Browse files
committed
chore: vue 文件 style 块切换到 scss
新增 sass-embedded devDependency,六个 vue 文件(Popup / Settings / Help / RippleButton / Select / Checkbox)的 style 块统一加 lang=scss,后续可以用嵌套语法整理大块样式。本次只切换语言、不改样式内容,build 产物体积与运行行为完全一致。将版本号提升到 1.2.99。
1 parent 92ac6a3 commit 756e0dd

8 files changed

Lines changed: 969 additions & 516 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.2.98",
4+
"version": "1.2.99",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {
@@ -25,6 +25,7 @@
2525
"eslint-plugin-vue": "^10.9.1",
2626
"lucide-vue-next": "^1.0.0",
2727
"prettier": "^3.8.3",
28+
"sass-embedded": "^1.99.0",
2829
"typescript": "~5.4.5",
2930
"typescript-eslint": "^8.59.2",
3031
"vite": "^5.2.10",

pnpm-lock.yaml

Lines changed: 958 additions & 506 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ui/components/Checkbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
}
5959
</script>
6060

61-
<style scoped>
61+
<style lang="scss" scoped>
6262
.sp-checkbox {
6363
align-items: center;
6464
display: inline-flex;

src/ui/components/RippleButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
}
6565
</script>
6666

67-
<style scoped>
67+
<style lang="scss" scoped>
6868
.sp-rb {
6969
position: relative;
7070
overflow: hidden;

src/ui/components/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
})
244244
</script>
245245

246-
<style scoped>
246+
<style lang="scss" scoped>
247247
.sp-select {
248248
display: block;
249249
position: relative;

src/ui/help/Help.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,15 @@ examplepay-sdk</pre
360360
})
361361
</script>
362362

363-
<style>
363+
<style lang="scss">
364364
body {
365365
font-size: 15px;
366366
line-height: 1.65;
367367
padding-top: 132px;
368368
}
369369
</style>
370370

371-
<style scoped>
371+
<style lang="scss" scoped>
372372
.help-shell {
373373
margin: 0 auto;
374374
max-width: 720px;

src/ui/popup/Popup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@
10561056
})
10571057
</script>
10581058

1059-
<style>
1059+
<style lang="scss">
10601060
body {
10611061
width: var(--popup-width);
10621062
height: 600px;
@@ -1066,7 +1066,7 @@
10661066
}
10671067
</style>
10681068

1069-
<style scoped>
1069+
<style lang="scss" scoped>
10701070
/* layout shell:flex column,整体高度 100vh,sections-scroller 独占滚动区 */
10711071
.shell {
10721072
display: flex;

src/ui/settings/Settings.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,15 +698,15 @@
698698
})
699699
</script>
700700

701-
<style>
701+
<style lang="scss">
702702
body {
703703
font-size: 14px;
704704
line-height: 1.5;
705705
padding-top: 152px;
706706
}
707707
</style>
708708

709-
<style scoped>
709+
<style lang="scss" scoped>
710710
.settings-shell {
711711
margin: 0 auto;
712712
max-width: 1120px;

0 commit comments

Comments
 (0)