Skip to content

Commit ff498f8

Browse files
committed
删除向下编译
优化卡片样式
1 parent 4f0b5ec commit ff498f8

4 files changed

Lines changed: 28 additions & 32 deletions

File tree

SharpScript/Site/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
import { AnsiUp } from "ansi_up";
125125
import type { EditorView } from "codemirror";
126126
import type { Extension, Text } from "@codemirror/state";
127-
import { autocompletion, Completion, CompletionContext, ifNotIn } from "@codemirror/autocomplete";
127+
import { autocompletion, ifNotIn, Completion, CompletionContext } from "@codemirror/autocomplete";
128128
import { linter, lintGutter } from "@codemirror/lint";
129129
import { hoverTooltip } from "@codemirror/view";
130130
import MetaSetter from "./components/MetaSetter.vue";
@@ -138,7 +138,6 @@
138138
import Alert16Regular from "@fluentui/svg-icons/icons/alert_16_regular.svg?component";
139139
import DismissCircle16Regular from "@fluentui/svg-icons/icons/dismiss_circle_16_regular.svg?component";
140140
import Warning16Regular from "@fluentui/svg-icons/icons/warning_16_regular.svg?component";
141-
import { direction } from "@fluentui/web-components";
142141
143142
export default {
144143
name: "App",
@@ -957,10 +956,11 @@
957956
flex: 1;
958957
display: flex;
959958
overflow: auto;
959+
box-sizing: border-box;
960960
background: var(--neutral-fill-input-rest);
961+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-layer-rest);
961962
border-radius: calc(var(--layer-corner-radius) * 1px);
962963
963-
964964
.cm-editor {
965965
flex: 1;
966966
overflow: inherit;

SharpScript/Site/components/SplitPanels.vue

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,27 +292,41 @@
292292
}
293293
294294
.median {
295-
background: var(--neutral-stroke-rest);
295+
box-sizing: border-box;
296+
background: var(--neutral-fill-input-rest);
297+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-layer-rest);
296298
border-radius: calc(var(--control-corner-radius) * 1px);
297299
display: inline-flex;
298300
align-items: center;
299301
justify-content: center;
300302
303+
span.handle {
304+
border: 1px solid var(--neutral-stroke-strong-rest);
305+
border-radius: 1px;
306+
}
307+
301308
&:hover {
302-
background: var(--neutral-stroke-hover);
309+
background: var(--neutral-fill-input-hover);
310+
311+
span.handle {
312+
border: 1px solid var(--neutral-stroke-strong-hover);
313+
}
303314
}
304315
305316
&:active {
306-
background: var(--neutral-stroke-active);
317+
background: var(--neutral-fill-input-active);
318+
319+
span.handle {
320+
border: 1px solid var(--neutral-stroke-strong-active);
321+
}
307322
}
308323
309324
&:focus {
310-
background: var(--neutral-stroke-focus);
311-
}
325+
background: var(--neutral-fill-input-focus);
312326
313-
span.handle {
314-
border: 1px solid var(--neutral-stroke-strong-rest);
315-
border-radius: 1px;
327+
span.handle {
328+
border: 1px solid var(--neutral-stroke-strong-focus);
329+
}
316330
}
317331
}
318332

SharpScript/Site/package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,15 @@
3939
"type": "git",
4040
"url": "git+https://github.com/wherewhere/SharpScript.git"
4141
},
42+
"devDependencies": {
43+
"eslint": "^9.0.0"
44+
},
4245
"dependencies": {
43-
"@babel/preset-typescript": "^7.0.0",
4446
"@babel/runtime": "^7.0.0",
4547
"@fluentui/svg-icons": "^1.0.0",
4648
"@fluentui/web-components": "^2.0.0",
4749
"@replit/codemirror-lang-csharp": "^6.0.0",
48-
"@rollup/plugin-babel": "^6.0.0",
49-
"@rollup/plugin-node-resolve": "^16.0.0",
5050
"@uiw/codemirror-theme-vscode": "^4.0.0",
51-
"@vitejs/plugin-legacy": "^7.0.0",
5251
"@vitejs/plugin-vue": "^6.0.0",
5352
"ansi_up": "^6.0.6",
5453
"async-lock": "^1.0.0",
@@ -63,9 +62,5 @@
6362
"vite-svg-loader": "^5.0.0",
6463
"vue": "^3.0.0",
6564
"vue-i18n": "^11.0.0"
66-
},
67-
"devDependencies": {
68-
"@types/babel__core": "^7.0.0",
69-
"eslint": "^9.0.0"
7065
}
7166
}

SharpScript/Site/vite.config.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { defineConfig } from "vite";
22
import vue from "@vitejs/plugin-vue";
3-
import legacy from "@vitejs/plugin-legacy";
43
import svgLoader from "vite-svg-loader";
5-
import postcssPresetEnv from "postcss-preset-env";
64
import { fileURLToPath } from "url";
75
import fs from "fs";
86
import path from "path";
@@ -18,11 +16,6 @@ export default defineConfig({
1816
}
1917
}
2018
}),
21-
legacy({
22-
targets: ["supports custom-elementsv1"],
23-
polyfills: false,
24-
renderLegacyChunks: false
25-
}),
2619
svgLoader(), {
2720
name: "dotnet-framework-static-files",
2821
configureServer(server) {
@@ -106,12 +99,6 @@ export default defineConfig({
10699
}
107100
}]
108101
}
109-
},
110-
postcss: {
111-
plugins: [postcssPresetEnv({
112-
stage: 0,
113-
browsers: ["supports custom-elementsv1"]
114-
})]
115102
}
116103
},
117104
build: {

0 commit comments

Comments
 (0)