-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathnuxt.config.js
147 lines (137 loc) · 4.18 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
export default {
ssr : true,
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: process.env.npm_package_description || ''
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [],
/*
** Plugins to load before mounting the App
*/
plugins: [],
/*
** Nuxt.js dev-modules
*/
buildModules: ['@nuxtjs/tailwindcss', 'nuxt-webfontloader'],
/*
** Nuxt.js modules
*/
modules: ['nuxt-i18n'],
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {}
},
webfontloader: {
google: {
families: [
'Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap'
]
}
},
server: {
port: 8000,
},
i18n: {
locales: ['en', 'id'],
defaultLocale: 'en',
vueI18n: {
fallbackLocale: 'en',
messages: {
en: {
welcome: 'Welcome',
title: 'Rock Paper Scissors',
subtitle: 'With Artificial Intellegence',
gameStart: 'Start Game',
youWin: 'You Win',
youLose: 'You Lose',
draw: 'Draw',
score: 'Score',
human: 'Human',
ai: 'AI',
rock: 'Rock',
paper: 'Paper',
scissors: 'Scissors',
reset: 'Reset',
gameCount: 'Game count',
what: 'What is this?',
thisIs:
'This is a paper scissors rock game created using artificial intelligence.',
thisGame:
"This game can read the players' patterns to determine the next steps for 'AI' will take in order to win.",
builtWith: 'Built with Nuxt JS & Tailwind CSS framework.',
how: 'How to play',
step1: 'You can start the game by selecting "rock", "scissors" or "paper".',
step2: 'Choose continuously until you create a pattern.',
step3: 'Examples of patterns:',
pattern1: 'Rock, rock, rock, rock, etc.',
pattern2: 'Rock, scissors, rock, scissors, etc.',
pattern3: 'Rock, scissors, paper, rock, scissors, paper, etc.',
pattern4: 'Paper, paper, paper, paper, etc.',
step4: 'See that you will lose.',
source: 'Source code',
brainjs: 'Built with library',
github: 'Get this code in'
},
id: {
welcome: 'Selamat datang',
title: 'Batu Gunting Kertas',
subtitle: 'Dengan Kecerdasan Buatan',
gameStart: 'Mulai Permainan',
youWin: 'Anda Menang',
youLose: 'Anda Kalah',
draw: 'Seri',
score: 'Skor',
human: 'Manusia',
ai: 'AI',
rock: 'Batu',
paper: 'Kertas',
scissors: 'Gunting',
reset: 'Ulangi dari awal',
gameCount: 'Game ke',
what: 'Apa ini?',
thisIs:
'Ini adalah permainan batu gunting kertas yang dibuat dengan menggunakan kecerdasan buatan.',
thisGame:
"Game ini dapat membaca pola pemainnya untuk menentukan langkah yang akan diambil oleh AI agar bisa menang.",
builtWith: 'Dibuat dengan framework Nuxt JS & Tailwind CSS.',
how: 'Cara bermain',
step1: 'Anda bisa memulai permainan dengan memilih "batu", "gunting" atau "kertas".',
step2: 'Pilihlah secara terus menerus sampai membuat pola.',
step3: 'Contoh pola:',
pattern1: 'Batu, batu, batu, batu, dst.',
pattern2: 'Batu, gunting, batu, gunting, dst.',
pattern3: 'Batu, gunting, kertas, batu, gunting, kertas, dst.',
pattern4: 'Kertas, kertas, kertas, kertas, dst.',
step4: 'Lihatlah bahwa Anda akan kalah.',
source: 'Kode Sumber',
brainjs: 'Dibuat dengan library',
github: 'Dapatkan kode game ini di'
}
}
}
}
}