Skip to content

Commit f98628b

Browse files
authored
Translate Tool (#56)
* translate * color pages * fix page titles * function logic * scripts work now * add newlines
1 parent fba2938 commit f98628b

28 files changed

+2961
-1453
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ module.exports = {
1111
'vue/max-attributes-per-line': 'off',
1212
'vue/multi-word-component-names': 'off'
1313
}
14-
}
14+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ yarn install
2828
yarn dev
2929
```
3030

31-
It can now be reached at http://localhost:3000/.
31+
It can now be reached at http://localhost:3000/.

app.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ export default defineAppConfig({
4444
href: '/docs'
4545
},
4646
{
47-
text: 'Code Editor',
47+
text: 'Code Generator',
4848
href: '/editor'
4949
},
50+
{
51+
text: 'Translation Tool',
52+
href: '/translate'
53+
},
5054
{
5155
text: 'Demo',
5256
href: 'https://demo.emulatorjs.org',

components/AppHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ css({
121121
}
122122
}
123123
})
124-
</style>
124+
</style>

components/AppHeaderDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ css({
131131
height: '{space.4}'
132132
}
133133
})
134-
</style>
134+
</style>

components/AppLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ css({
4141
}
4242
}
4343
})
44-
</style>
44+
</style>

components/DocsPageLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,4 @@ css({
295295
}
296296
}
297297
})
298-
</style>
298+
</style>

components/NavigationLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ css({
8484
}
8585
8686
})
87-
</style>
87+
</style>

content/1.docs/1.index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Introduction
22

3-
You can use the [Code Editor](/editor) to generate the embed code for your website.
3+
You can use the [Code Generator](/editor) to generate the embed code for your website.
44

55
[EmulatorJS](https://github.com/EmulatorJS/EmulatorJS) runs RetroArch compiled to webassembly, optimized for running in the web browser.
66

content/1.docs/8.systems/_dir.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
title: Systems
2-
aside.collapsed: true
2+
aside.collapsed: true

content/1.docs/_dir.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
title: Docs
22
icon: mdi:books
3-
aside.collapsed: false
3+
aside.collapsed: false

content/2.docs4devs/_dir.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
title: Docs for Devs
22
icon: wpf:books
3-
aside.collapsed: false
3+
aside.collapsed: false

nuxt.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,3 @@ export default defineNuxtConfig({
6161

6262
compatibilityDate: '2024-12-21',
6363
})
64-
65-
function resolve(arg0: string): string | undefined {
66-
throw new Error("Function not implemented.");
67-
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "emulatorjs.org",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "The EmulatorJS Website",
55
"main": "index.js",
66
"license": "MIT",
@@ -19,17 +19,17 @@
1919
},
2020
"devDependencies": {
2121
"@nuxt-themes/docus": "^1.15.1",
22-
"@nuxt/eslint-config": "^1.2.0",
23-
"@types/node": "^22.13.10",
22+
"@nuxt/eslint-config": "^1.3.0",
23+
"@types/node": "^22.15.0",
2424
"@vue/compiler-sfc": "^3.5.13",
25-
"eslint": "^9.17.0",
26-
"nuxt": "^3.16.0",
25+
"eslint": "^9.25.1",
26+
"nuxt": "^3.16.2",
2727
"nuxt-anchorscroll": "^1.0.5",
28-
"nuxt-custom-elements": "^2.0.0-beta.31",
28+
"nuxt-custom-elements": "^2.0.0-beta.32",
2929
"nuxt-gtag": "^3.0.2",
3030
"postcss": "^8.5.3",
3131
"typescript": "^5.8.2",
32-
"vite": "^6.2.3",
32+
"vite": "^6.3.3",
3333
"vue": "^3.5.13"
3434
}
3535
}

pages/editor.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<script setup lang="ts">
22
useSeoMeta({
3-
title: 'Code Editor',
3+
title: 'Code Generator',
44
description: 'Simple code generator for EmulatorJS',
55
});
66
useHead({
7-
title: 'Code Editor',
7+
title: 'Code Generator',
88
meta: [{ name: 'description', content: 'Simple code generator for EmulatorJS' }],
99
link: [{ rel: 'stylesheet', href: '/css/editor.css' }],
10-
script: [{ src: '/js/editor.js' }, { src: '/js/jszip.js' }, { src: '/js/systems.js', onload: 'loadsystems()'}],
10+
script: [{ src: '/js/jszip.js' }, { src: '/js/systems.js', onload: 'loadsystems()'}],
1111
});
1212
definePageMeta({
13-
title: 'Code Editor'
13+
title: 'Code Generator'
1414
});
1515
</script>
1616
<template>
@@ -114,6 +114,7 @@ definePageMeta({
114114
<a class="blockB" onclick="window.location.reload();" style="margin:20px;">Reset</a>
115115
</ul>
116116
</div>
117+
<br>
117118
</div>
118119
</template>
119120
<style lang="ts" scoped>

pages/translate.vue

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<script setup lang="ts">
2+
useSeoMeta({
3+
title: 'Translation Tool',
4+
description: 'Translation Helper Tool for EmulatorJS',
5+
});
6+
useHead({
7+
title: 'Translation Tool',
8+
meta: [{ name: 'description', content: 'Translation Helper Tool for EmulatorJS' }],
9+
link: [{ rel: 'stylesheet', href: '/css/translate.css' }]
10+
});
11+
definePageMeta({
12+
title: 'Translation Tool'
13+
});
14+
</script>
15+
<template>
16+
<div class="translate">
17+
<br>
18+
<div class="header">
19+
<h1>Translation Helper Tool</h1>
20+
</div>
21+
<br>
22+
<div class="boxes">
23+
<div class="box">
24+
<button class="copyBtn" id="copyBtn1">
25+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="18px"
26+
height="18px">
27+
<path
28+
d="M6 4V8H18V4H20.0066C20.5552 4 21 4.44495 21 4.9934V21.0066C21 21.5552 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5551 3 21.0066V4.9934C3 4.44476 3.44495 4 3.9934 4H6ZM8 2H16V6H8V2Z">
29+
</path>
30+
</svg>
31+
</button>
32+
<textarea id="box1" rows="39.5" cols="30" spellcheck="false"></textarea>
33+
</div>
34+
<div class="box">
35+
<textarea id="box2"
36+
placeholder="Copy what is on the left into google translate or any other translation service, then translate it into the language you whant and paste the translation here."
37+
rows="39.5" cols="50" spellcheck="false"></textarea>
38+
<button class="nextBtn" id="nextBtn">Next</button>
39+
</div>
40+
<div class="box">
41+
<button class="copyBtn" id="copyBtn3">
42+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="18px"
43+
height="18px">
44+
<path
45+
d="M6 4V8H18V4H20.0066C20.5552 4 21 4.44495 21 4.9934V21.0066C21 21.5552 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5551 3 21.0066V4.9934C3 4.44476 3.44495 4 3.9934 4H6ZM8 2H16V6H8V2Z">
46+
</path>
47+
</svg>
48+
</button>
49+
<textarea id="box3" placeholder="Then click next and you are done copy this box in to a .json file"
50+
rows="39.5" cols="50" spellcheck="false"></textarea>
51+
</div>
52+
</div>
53+
<br>
54+
</div>
55+
</template>
56+
<style lang="ts" scoped>
57+
css({
58+
'*': {
59+
fontSize: 'revert',
60+
fontWeight: 'revert',
61+
},
62+
'.center': {
63+
textAlign: 'center',
64+
},
65+
'.main': {
66+
margin: 'auto',
67+
width: '80%',
68+
maxWidth: '1000px',
69+
textAlign: 'left',
70+
},
71+
'.next': {
72+
textAlign: 'right',
73+
},
74+
'.back': {
75+
textAlign: 'left',
76+
},
77+
})
78+
</style>

public/ads.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google.com, pub-8832864985153925, DIRECT, f08c47fec0942fa0
1+
google.com, pub-8832864985153925, DIRECT, f08c47fec0942fa0

public/backToTop.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)