-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from neverRare/master
0.2.0
- Loading branch information
Showing
21 changed files
with
2,331 additions
and
1,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# This workflow will install Deno then run `deno lint` and `deno test`. | ||
# For more information see: https://github.com/denoland/setup-deno | ||
|
||
name: Deno | ||
|
||
on: | ||
push: | ||
branches: ["release"] | ||
pull_request: | ||
branches: ["release"] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Build | ||
run: deno task build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
main.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
"cSpell.customDictionaries": { | ||
"ku-suli": { | ||
"name": "ku-suli", | ||
"path": "${workspaceRoot}/nimi-ku-suli.txt", | ||
"description": "Ku Suli words of Toki Pona", | ||
"addWords": true | ||
} | ||
"cSpell.customDictionaries": { | ||
"ku-suli": { | ||
"name": "ku-suli", | ||
"path": "${workspaceRoot}/nimi-ku-suli.txt", | ||
"description": "Ku Suli words of Toki Pona", | ||
"addWords": true | ||
} | ||
} | ||
}, | ||
"deno.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Contributing | ||
|
||
You can do the usual github stuff: Open issue if there's an issue or you have a suggestion; Open pull request if you want to propose changes. If you want to propose a large change however, please open an issue first (or comment on an already existing issue page), and wait for my signal before beginning to work. | ||
|
||
## The wiki | ||
|
||
The wiki provides useful information for contributors, although it's not complete yet. Check it out: [Visit wiki](https://github.com/neverRare/toki-pona-translator/wiki). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { bundle } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
const SOURCE = "./src/main.ts"; | ||
const DESTINATION = "./main.js"; | ||
|
||
const url = new URL(SOURCE, import.meta.url); | ||
const result = await bundle(url); | ||
|
||
const { code } = result; | ||
await Deno.writeTextFile(DESTINATION, code); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"lock": false, | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"lib": ["dom", "dom.iterable", "dom.asynciterable", "deno.ns"] | ||
}, | ||
"tasks": { | ||
"build": "deno run --allow-read --allow-write --allow-env ./bundle.ts" | ||
}, | ||
"fmt": { | ||
"include": ["./src/**/*.ts", "./bundle.ts", "./test-parser.ts"] | ||
}, | ||
"lint": { | ||
"include": ["./src/**/*.ts", "./bundle.ts", "./test-parser.ts"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="author" content="neverRare" /> | ||
|
@@ -24,11 +24,15 @@ <h1>Toki Pona Translator</h1> | |
<p> | ||
An imperfect Toki Pona to English translator that translates into multiple | ||
sentences. | ||
<a href="https://github.com/neverRare/toki-pona-translator#limitations" | ||
<a | ||
href="https://github.com/neverRare/toki-pona-translator/wiki/Limitations" | ||
>Limitations</a | ||
>. | ||
</p> | ||
<textarea id="input" placeholder="o toki tawa ni"></textarea> | ||
<textarea id="input" placeholder="o toki tawa ni" lang="tok"></textarea> | ||
<div> | ||
<button id="translate-button">Translate</button> | ||
</div> | ||
<ul id="output"></ul> | ||
<p id="error"></p> | ||
<details> | ||
|
@@ -51,7 +55,6 @@ <h1>Toki Pona Translator</h1> | |
>Toki Pona to multiple English sentence translator</a | ||
>. | ||
</li> | ||
<li>Dm me on Discord: never_rare</li> | ||
<li> | ||
Email me: | ||
<a href="mailto:[email protected]" | ||
|
@@ -63,8 +66,8 @@ <h1>Toki Pona Translator</h1> | |
<footer> | ||
<p> | ||
<a | ||
href="https://github.com/neverRare/toki-pona-translator/blob/master/CHANGELOG.md#002" | ||
>v0.1.1</a | ||
href="https://github.com/neverRare/toki-pona-translator/blob/master/CHANGELOG.md" | ||
>v0.2.0</a | ||
> | ||
- © 2024 neverRare - | ||
<a | ||
|
Oops, something went wrong.