Skip to content

Commit

Permalink
Integrate Tailwind CSS, componetize, composable for state management …
Browse files Browse the repository at this point in the history
…between components. (#19)

* Add tailwind setup and extension recommendation
* integrate tailwind and componentize with composable for state management
* tweak styles and make things look nicer
* final comments in readme.
  • Loading branch information
chrisjbarr authored Aug 5, 2022
1 parent f8b364d commit f1cdc4b
Show file tree
Hide file tree
Showing 20 changed files with 980 additions and 171 deletions.
42 changes: 25 additions & 17 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions front-end/.eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
"useFullscreen": true,
"useGamepad": true,
"useGeolocation": true,
"useGitHubSearch": true,
"useIdle": true,
"useImage": true,
"useInfiniteScroll": true,
Expand Down
8 changes: 7 additions & 1 deletion front-end/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"recommendations": ["Vue.volar", "ZixuanChen.vitest-explorer", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
"recommendations": [
"Vue.volar",
"ZixuanChen.vitest-explorer",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss"
]
}
2 changes: 2 additions & 0 deletions front-end/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ declare global {
const useFullscreen: typeof import('@vueuse/core')['useFullscreen']
const useGamepad: typeof import('@vueuse/core')['useGamepad']
const useGeolocation: typeof import('@vueuse/core')['useGeolocation']
const useGitHubSearch: typeof import('./src/composables/useGitHubSearch')['useGitHubSearch']
const useIdle: typeof import('@vueuse/core')['useIdle']
const useImage: typeof import('@vueuse/core')['useImage']
const useInfiniteScroll: typeof import('@vueuse/core')['useInfiniteScroll']
Expand Down Expand Up @@ -441,6 +442,7 @@ declare module '@vue/runtime-core' {
readonly useFullscreen: UnwrapRef<typeof import('@vueuse/core')['useFullscreen']>
readonly useGamepad: UnwrapRef<typeof import('@vueuse/core')['useGamepad']>
readonly useGeolocation: UnwrapRef<typeof import('@vueuse/core')['useGeolocation']>
readonly useGitHubSearch: UnwrapRef<typeof import('./src/composables/useGitHubSearch')['useGitHubSearch']>
readonly useIdle: UnwrapRef<typeof import('@vueuse/core')['useIdle']>
readonly useImage: UnwrapRef<typeof import('@vueuse/core')['useImage']>
readonly useInfiniteScroll: UnwrapRef<typeof import('@vueuse/core')['useInfiniteScroll']>
Expand Down
4 changes: 3 additions & 1 deletion front-end/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ export {}

declare module '@vue/runtime-core' {
export interface GlobalComponents {
GitHubSearch: typeof import('./src/components/GitHub/Search.vue')['default']
GitHubSearchHistory: typeof import('./src/components/GitHub/SearchHistory.vue')['default']
GitHubSearchInput: typeof import('./src/components/GitHub/SearchInput.vue')['default']
GitHubSearchResults: typeof import('./src/components/GitHub/SearchResults.vue')['default']
LayoutHeader: typeof import('./src/components/Layout/Header.vue')['default']
LayoutSidebar: typeof import('./src/components/Layout/Sidebar.vue')['default']
}
}
Loading

0 comments on commit f1cdc4b

Please sign in to comment.