Skip to content

Commit c764a74

Browse files
committed
デザイン修正とデータ取得処理追加
・Bootstrap対応 ・API取得処理追加 ・テスト追加
1 parent 7452c1a commit c764a74

38 files changed

+3904
-250
lines changed

@types/icons.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module 'vue-material-design-icons/*' // アイコン

@types/index.d.ts

+42-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
declare module 'vue-material-design-icons/*' // アイコン
1+
import { Repositories } from '~/plugins/factories/ApiRepositoryFactory'
2+
import { accessorType } from '~/store'
3+
4+
/* -------------------------------------------------------
5+
* リポジトリ
6+
* ------------------------------------------------------- */
7+
declare module '@nuxt/types' {
8+
interface NuxtAppOptions {
9+
readonly $repositories: <K extends keyof Repositories>(key: K) => ReturnType<Repositories[K]>
10+
// readonly $repositories: repositories // this.app.XXXでも、TS2349呼び出し不可となる
11+
}
12+
}
13+
declare module 'vue/types/vue' {
14+
interface Vue {
15+
// $repositories: Repositories // This expression is not callable. Type 'Repositories' has no call signatures.Vetur(2349)
16+
readonly $repositories: <K extends keyof Repositories>(key: K) => ReturnType<Repositories[K]>
17+
18+
}
19+
}
20+
21+
22+
declare module 'vuex' {
23+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
24+
interface Store<S> {
25+
readonly $repositories: Repositories
26+
}
27+
}
28+
29+
/* -------------------------------------------------------
30+
* Vuex
31+
* ------------------------------------------------------- */
32+
declare module 'vue/types/vue' {
33+
interface Vue {
34+
$accessor: typeof accessorType
35+
}
36+
}
37+
38+
declare module '@nuxt/types' {
39+
interface NuxtAppOptions {
40+
$accessor: typeof accessorType
41+
}
42+
}

assets/css/_var.scss

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$primary: #BF9D73;
2+
$secondary: #4369D9;
3+
$light: #359AF2;
4+
$dark: #0F1640;
5+
$info: #2E3C8C;

assets/css/main.scss

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* -------------------------------------------------
2+
* Bootstrap
3+
* ------------------------------------------------- */
4+
@import "../../node_modules/bootstrap/scss/bootstrap";
5+

0 commit comments

Comments
 (0)