Compare commits
4 Commits
9aaf97b593
...
c337503efd
Author | SHA1 | Date |
---|---|---|
Inhji | c337503efd | |
Inhji | 28d15f9269 | |
Inhji | ebf29c4fe8 | |
Inhji | d856807324 |
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite App</title>
|
||||
<title>Germanator</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
2
main.js
2
main.js
|
@ -17,9 +17,9 @@ const randomIndex = getRandomInt(0, all.length - 1)
|
|||
const randomWord = all[randomIndex]
|
||||
|
||||
document.querySelector('#app').innerHTML = `
|
||||
|
||||
<h1>What does '<a href='https://dict.cc/${randomWord}'>${randomWord}</a>' mean?</h1>
|
||||
<h2>And does this word even exist? 🤔</h2>
|
||||
|
||||
<p>(Click on the link to check the meaning on <a href="https://dict.cc">dict.cc</a>)</p>
|
||||
<p>This word comes from a collection of ${data.verbs.length*data.prefixes.length} verbs made from only ${data.verbs.length} verbs and ${data.prefixes.length} prefixes. See how lazy germans are?</p>
|
||||
`
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
"preview": "vite preview",
|
||||
"push": "rsync -av dist/ inhji.de:/var/www/projects/german"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^2.9.7"
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
import { defineConfig } from 'vite'
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [],
|
||||
// support hosting the app in a subdirectory
|
||||
base: ""
|
||||
})
|
Loading…
Reference in New Issue