Skip to content

Commit 675e98f

Browse files
committed
chore(vue): remove any traces of ReactJS
1 parent 30708db commit 675e98f

File tree

11 files changed

+13
-57
lines changed

11 files changed

+13
-57
lines changed

js/showcase/src/vue/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
} from "./render";
1818

1919
export function setupShowcase(
20-
config: ShowcaseConfigDef<(props: any) => VNode> & {
21-
showcases: Record<string, DefineComponent>;
20+
config: ShowcaseConfigDef<ConcreteComponent<any>> & {
21+
showcases: Record<string, ConcreteComponent<any>>;
2222
}
2323
) {
2424
const virtualElem = document.createElement("div");

js/vue/eslint.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ export default defineConfigWithVueTs([
2020
},
2121
},
2222

23-
// plugins: { "react-refresh": reactRefresh },
24-
2523
rules: {
2624
"no-sparse-arrays": "off",
2725
"@typescript-eslint/no-unsafe-function-type": "off",

js/vue/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>RustLangES React Components</title>
7+
<title>RustLangES Vue Components</title>
88
<style>
99
@media (prefers-color-scheme: dark) {
1010
html:where(:not(.rustlanges-theme-light)) {
@@ -15,6 +15,6 @@
1515
</head>
1616
<body>
1717
<div id="root"></div>
18-
<script type="module" src="/showcase/main.tsx"></script>
18+
<script type="module" src="/showcase/main.ts"></script>
1919
</body>
2020
</html>

js/vue/lib/icons/index.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
1-
// export { Alert } from "./alert";
2-
// export { ArrowDown } from "./arrow-down";
3-
// export { ArrowLeft } from "./arrow-left";
4-
// export { ArrowRight } from "./arrow-right";
5-
// export { ArrowUp } from "./arrow-up";
6-
// export { Book } from "./book";
7-
// export { Close } from "./close";
8-
// export { Discord } from "./discord";
9-
// export { File } from "./file";
10-
// export { Github } from "./github";
11-
// export { Link } from "./link";
12-
// export { Linkedin } from "./linkedin";
131
export { default as Location } from "./location.vue";
14-
// export { Menu } from "./menu";
15-
// export { Moon } from "./moon";
16-
// export { Project } from "./project";
17-
// export { Roadmap } from "./roadmap";
18-
// export { Share } from "./share";
19-
// export { StarBold } from "./star-bold";
20-
// export { SunLine } from "./sun-line";
21-
// export { Telegram } from "./telegram";
22-
// export { Twitter } from "./twitter";
23-
// export { Youtube } from "./youtube";

js/vue/lib/showcases.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
// import "./components/avatar/avatar.showcase";
2-
// import "./components/badge/badge.showcase";
31
export { default as ButtonShowcase } from "./components/rs-button.showcase.vue";
4-
// import "./components/calendar/calendar.showcase";
5-
// import "./components/card/card.showcase";
6-
// import "./components/chip/chip.showcase";
7-
// import "./components/collaborators/collaborators.showcase";
8-
// import "./components/contact-form/contact-form.showcase";
9-
// import "./components/dropdown/dropdown.showcase";
10-
// import "./components/dropdown-tree/dropdown-tree.showcase";
11-
// import "./components/flap/flap.showcase";
12-
// import "./components/input/input.showcase";
13-
// import "./components/input-search/input-search.showcase";
14-
// import "./components/level/level.showcase";
15-
// import "./components/progress-bar/progress-bar.showcase";
16-
// import "./components/radio/radio.showcase";
17-
// import "./components/tag/tag.showcase";

js/vue/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@rustlanges/react",
2+
"name": "@rustlanges/vue",
33
"private": false,
44
"version": "0.0.1",
55
"type": "module",
@@ -25,8 +25,7 @@
2525
},
2626
"scripts": {
2727
"dev": "vite",
28-
"build": "vite build && pnpm run build:tailwindcss",
29-
":build": "tsc -b ./tsconfig.lib.json && vite build && pnpm run check:tsc && pnpm run build:tailwindcss",
28+
"build": "pnpm run check:tsc && vite build && pnpm run build:tailwindcss",
3029
"build:showcase": "BUILD_SHOWCASE=1 NODE_ENV=development pnpm run build",
3130
"build:tailwindcss": "npx @tailwindcss/cli -i lib/styles.css -o dist/styles.css --minify",
3231
"lint": "eslint . --ext ts,vue --report-unused-disable-directives --max-warnings 0 && npm run check:tsc",
File renamed without changes.

js/vue/showcase/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import "@rustlanges/react/styles.css";
1+
@import "@rustlanges/vue/styles.css";

js/vue/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
{
55
"path": "./tsconfig.app.json"
66
},
7-
{
8-
"path": "./tsconfig.lib.json"
9-
},
107
{
118
"path": "./tsconfig.node.json"
129
}

js/vue/tsconfig.lib.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)