From 0d0f6f37e7e403a4d14ada33a780d3af54f7d88a Mon Sep 17 00:00:00 2001 From: selemondev Date: Mon, 11 Mar 2024 22:03:23 +0300 Subject: [PATCH] chore: cleanup --- template/vue-js/src/App.ejs | 98 +------------------ template/vue-js/src/assets/css/tailwind.css | 33 ++++++- template/vue-js/src/components/HelloWorld.vue | 44 --------- template/vue-js/src/components/TheWelcome.vue | 91 ++--------------- .../vue-js/src/components/WelcomeItem.vue | 86 ---------------- .../components/__tests__/HelloWorld.spec.js | 11 --- .../components/__tests__/TheWelcome.spec.js | 11 +++ .../src/components/icons/IconCommunity.vue | 7 -- .../components/icons/IconDocumentation.vue | 7 -- .../src/components/icons/IconEcosystem.vue | 7 -- .../src/components/icons/IconSupport.vue | 7 -- .../src/components/icons/IconTooling.vue | 19 ---- template/vue-js/tailwind.config.js | 22 +++-- template/vue-ts/src/App.ejs | 98 +------------------ template/vue-ts/src/assets/css/tailwind.css | 33 ++++++- template/vue-ts/src/components/HelloWorld.vue | 41 -------- template/vue-ts/src/components/TheWelcome.vue | 91 ++--------------- .../vue-ts/src/components/WelcomeItem.vue | 87 ---------------- .../components/__tests__/HelloWorld.spec.ts | 11 --- .../components/__tests__/TheWelcome.spec.ts | 11 +++ .../src/components/icons/IconCommunity.vue | 7 -- .../components/icons/IconDocumentation.vue | 7 -- .../src/components/icons/IconEcosystem.vue | 7 -- .../src/components/icons/IconSupport.vue | 7 -- .../src/components/icons/IconTooling.vue | 19 ---- template/vue-ts/tailwind.config.js | 8 +- 26 files changed, 121 insertions(+), 749 deletions(-) delete mode 100644 template/vue-js/src/components/HelloWorld.vue delete mode 100644 template/vue-js/src/components/WelcomeItem.vue delete mode 100644 template/vue-js/src/components/__tests__/HelloWorld.spec.js create mode 100644 template/vue-js/src/components/__tests__/TheWelcome.spec.js delete mode 100644 template/vue-js/src/components/icons/IconCommunity.vue delete mode 100644 template/vue-js/src/components/icons/IconDocumentation.vue delete mode 100644 template/vue-js/src/components/icons/IconEcosystem.vue delete mode 100644 template/vue-js/src/components/icons/IconSupport.vue delete mode 100644 template/vue-js/src/components/icons/IconTooling.vue delete mode 100644 template/vue-ts/src/components/HelloWorld.vue delete mode 100644 template/vue-ts/src/components/WelcomeItem.vue delete mode 100644 template/vue-ts/src/components/__tests__/HelloWorld.spec.ts create mode 100644 template/vue-ts/src/components/__tests__/TheWelcome.spec.ts delete mode 100644 template/vue-ts/src/components/icons/IconCommunity.vue delete mode 100644 template/vue-ts/src/components/icons/IconDocumentation.vue delete mode 100644 template/vue-ts/src/components/icons/IconEcosystem.vue delete mode 100644 template/vue-ts/src/components/icons/IconSupport.vue delete mode 100644 template/vue-ts/src/components/icons/IconTooling.vue diff --git a/template/vue-js/src/App.ejs b/template/vue-js/src/App.ejs index 023537f..e81ecd9 100644 --- a/template/vue-js/src/App.ejs +++ b/template/vue-js/src/App.ejs @@ -31,100 +31,4 @@ <% if (useTanStackVueQuery) { -%> <% } -%> - - - \ No newline at end of file + \ No newline at end of file diff --git a/template/vue-js/src/assets/css/tailwind.css b/template/vue-js/src/assets/css/tailwind.css index bd6213e..872b4ff 100644 --- a/template/vue-js/src/assets/css/tailwind.css +++ b/template/vue-js/src/assets/css/tailwind.css @@ -1,3 +1,34 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + +:root { + --foreground-rgb: 0, 0, 0; + --background-start-rgb: 214, 219, 220; + --background-end-rgb: 255, 255, 255; + } + + @media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --background-start-rgb: 0, 0, 0; + --background-end-rgb: 0, 0, 0; + } + } + + body { + color: rgb(var(--foreground-rgb)); + background: linear-gradient( + to bottom, + transparent, + rgb(var(--background-end-rgb)) + ) + rgb(var(--background-start-rgb)); + } + + @layer utilities { + .text-balance { + text-wrap: balance; + } + } + \ No newline at end of file diff --git a/template/vue-js/src/components/HelloWorld.vue b/template/vue-js/src/components/HelloWorld.vue deleted file mode 100644 index 5fb372c..0000000 --- a/template/vue-js/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/template/vue-js/src/components/TheWelcome.vue b/template/vue-js/src/components/TheWelcome.vue index dab9536..8e82a57 100644 --- a/template/vue-js/src/components/TheWelcome.vue +++ b/template/vue-js/src/components/TheWelcome.vue @@ -1,88 +1,9 @@ - +
+ Welcome +
+ \ No newline at end of file diff --git a/template/vue-js/src/components/WelcomeItem.vue b/template/vue-js/src/components/WelcomeItem.vue deleted file mode 100644 index ac366d0..0000000 --- a/template/vue-js/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/template/vue-js/src/components/__tests__/HelloWorld.spec.js b/template/vue-js/src/components/__tests__/HelloWorld.spec.js deleted file mode 100644 index 2533202..0000000 --- a/template/vue-js/src/components/__tests__/HelloWorld.spec.js +++ /dev/null @@ -1,11 +0,0 @@ -import { describe, it, expect } from 'vitest' - -import { mount } from '@vue/test-utils' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('renders properly', () => { - const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } }) - expect(wrapper.text()).toContain('Hello Vitest') - }) -}) diff --git a/template/vue-js/src/components/__tests__/TheWelcome.spec.js b/template/vue-js/src/components/__tests__/TheWelcome.spec.js new file mode 100644 index 0000000..28848f7 --- /dev/null +++ b/template/vue-js/src/components/__tests__/TheWelcome.spec.js @@ -0,0 +1,11 @@ +import { describe, it, expect } from 'vitest' + +import { mount } from '@vue/test-utils' +import TheWelcome from '../TheWelcome.vue' + +describe('TheWelcome', () => { + it('renders properly', () => { + const wrapper = mount(TheWelcome) + expect(wrapper.text()).toContain('Welcome') + }) +}) diff --git a/template/vue-js/src/components/icons/IconCommunity.vue b/template/vue-js/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b05..0000000 --- a/template/vue-js/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/vue-js/src/components/icons/IconDocumentation.vue b/template/vue-js/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791c..0000000 --- a/template/vue-js/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/vue-js/src/components/icons/IconEcosystem.vue b/template/vue-js/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f07..0000000 --- a/template/vue-js/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/vue-js/src/components/icons/IconSupport.vue b/template/vue-js/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834..0000000 --- a/template/vue-js/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/vue-js/src/components/icons/IconTooling.vue b/template/vue-js/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d..0000000 --- a/template/vue-js/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/template/vue-js/tailwind.config.js b/template/vue-js/tailwind.config.js index 6a451dd..d4b303d 100644 --- a/template/vue-js/tailwind.config.js +++ b/template/vue-js/tailwind.config.js @@ -1,11 +1,17 @@ /** @type {import('tailwindcss').Config} */ export default { - content: [ - "./index.html", - "./src/**/*.{vue,js,ts,jsx,tsx}", - ], - theme: { - extend: {}, + content: [ + "./index.html", + "./src/**/*.{vue,js,ts,jsx,tsx}", + ], + theme: { + extend: { + backgroundImage: { + "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", + "gradient-conic": + "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", + }, }, - plugins: [], - } \ No newline at end of file + }, + plugins: [], +} \ No newline at end of file diff --git a/template/vue-ts/src/App.ejs b/template/vue-ts/src/App.ejs index a3a89cf..7d2cf5f 100644 --- a/template/vue-ts/src/App.ejs +++ b/template/vue-ts/src/App.ejs @@ -31,100 +31,4 @@ <% if (useTanStackVueQuery) { -%> <% } -%> - - - \ No newline at end of file + \ No newline at end of file diff --git a/template/vue-ts/src/assets/css/tailwind.css b/template/vue-ts/src/assets/css/tailwind.css index bd6213e..872b4ff 100644 --- a/template/vue-ts/src/assets/css/tailwind.css +++ b/template/vue-ts/src/assets/css/tailwind.css @@ -1,3 +1,34 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + +:root { + --foreground-rgb: 0, 0, 0; + --background-start-rgb: 214, 219, 220; + --background-end-rgb: 255, 255, 255; + } + + @media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --background-start-rgb: 0, 0, 0; + --background-end-rgb: 0, 0, 0; + } + } + + body { + color: rgb(var(--foreground-rgb)); + background: linear-gradient( + to bottom, + transparent, + rgb(var(--background-end-rgb)) + ) + rgb(var(--background-start-rgb)); + } + + @layer utilities { + .text-balance { + text-wrap: balance; + } + } + \ No newline at end of file diff --git a/template/vue-ts/src/components/HelloWorld.vue b/template/vue-ts/src/components/HelloWorld.vue deleted file mode 100644 index 38d821e..0000000 --- a/template/vue-ts/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/template/vue-ts/src/components/TheWelcome.vue b/template/vue-ts/src/components/TheWelcome.vue index 49d8f73..8e82a57 100644 --- a/template/vue-ts/src/components/TheWelcome.vue +++ b/template/vue-ts/src/components/TheWelcome.vue @@ -1,88 +1,9 @@ - +
+ Welcome +
+ \ No newline at end of file diff --git a/template/vue-ts/src/components/WelcomeItem.vue b/template/vue-ts/src/components/WelcomeItem.vue deleted file mode 100644 index 6d7086a..0000000 --- a/template/vue-ts/src/components/WelcomeItem.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - diff --git a/template/vue-ts/src/components/__tests__/HelloWorld.spec.ts b/template/vue-ts/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index 2533202..0000000 --- a/template/vue-ts/src/components/__tests__/HelloWorld.spec.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { describe, it, expect } from 'vitest' - -import { mount } from '@vue/test-utils' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('renders properly', () => { - const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } }) - expect(wrapper.text()).toContain('Hello Vitest') - }) -}) diff --git a/template/vue-ts/src/components/__tests__/TheWelcome.spec.ts b/template/vue-ts/src/components/__tests__/TheWelcome.spec.ts new file mode 100644 index 0000000..28848f7 --- /dev/null +++ b/template/vue-ts/src/components/__tests__/TheWelcome.spec.ts @@ -0,0 +1,11 @@ +import { describe, it, expect } from 'vitest' + +import { mount } from '@vue/test-utils' +import TheWelcome from '../TheWelcome.vue' + +describe('TheWelcome', () => { + it('renders properly', () => { + const wrapper = mount(TheWelcome) + expect(wrapper.text()).toContain('Welcome') + }) +}) diff --git a/template/vue-ts/src/components/icons/IconCommunity.vue b/template/vue-ts/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b05..0000000 --- a/template/vue-ts/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/vue-ts/src/components/icons/IconDocumentation.vue b/template/vue-ts/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791c..0000000 --- a/template/vue-ts/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/vue-ts/src/components/icons/IconEcosystem.vue b/template/vue-ts/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f07..0000000 --- a/template/vue-ts/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/vue-ts/src/components/icons/IconSupport.vue b/template/vue-ts/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834..0000000 --- a/template/vue-ts/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/template/vue-ts/src/components/icons/IconTooling.vue b/template/vue-ts/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d..0000000 --- a/template/vue-ts/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/template/vue-ts/tailwind.config.js b/template/vue-ts/tailwind.config.js index 6a451dd..1cbd666 100644 --- a/template/vue-ts/tailwind.config.js +++ b/template/vue-ts/tailwind.config.js @@ -5,7 +5,13 @@ export default { "./src/**/*.{vue,js,ts,jsx,tsx}", ], theme: { - extend: {}, + extend: { + backgroundImage: { + "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", + "gradient-conic": + "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", + }, + }, }, plugins: [], } \ No newline at end of file