-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
129 additions
and
95 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
name: main | ||
on: | ||
push: | ||
branches: | ||
- website | ||
schedule: | ||
- cron: '45 7 2 * *' | ||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- uses: dcodeIO/setup-node-nvm@master | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: node | ||
- run: npm install | ||
- run: npm test | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
- uses: JamesIves/github-pages-deploy-action@releases/v4 | ||
with: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
BRANCH: gh-pages | ||
FOLDER: dest | ||
SINGLE_COMMIT: true | ||
COMMIT_MESSAGE: . | ||
GIT_CONFIG_NAME: Titus Wormer | ||
GIT_CONFIG_EMAIL: tituswormer@gmail.com | ||
branch: gh-pages | ||
commit-message: . | ||
folder: dest | ||
git-config-email: tituswormer@gmail.com | ||
git-config-name: Titus Wormer | ||
single-commit: true | ||
name: main | ||
on: | ||
push: | ||
branches: | ||
- website |
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,8 @@ | ||
.DS_Store | ||
*.log | ||
dest/ | ||
node_modules/ | ||
*.d.ts | ||
*.log | ||
*.map | ||
*.tsbuildinfo | ||
.DS_Store | ||
yarn.lock | ||
dest/ |
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 +1,2 @@ | ||
ignore-scripts=true | ||
package-lock=false |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<!doctypehtml> | ||
<meta charset=utf8> | ||
<meta content=width=device-width,initial-scale=1 name=viewport> | ||
<title>direction</title> | ||
<link rel=stylesheet href=index.css> | ||
<meta content=initial-scale=1,width=device-width name=viewport> | ||
<link href=index.css rel=stylesheet> | ||
<h1>direction</h1> | ||
<p>A quick demo of <a href=https://github.com/wooorm/direction>direction</a>.</p> | ||
<p>Raise issues on <a href=https://github.com/wooorm/direction/issues>Github</a>.</p> | ||
<textarea autofocus spellcheck=false rows=20 cols=80>זהו סעיף בעברית.</textarea> | ||
<p>Direction: <output></output></p> | ||
<script type=module src=index.module.js></script> | ||
<textarea autofocus cols=80 rows=20 spellcheck=false>העלא, פּלוטאָ!</textarea> | ||
<p>Direction:<output></output></p> | ||
<script src=index.module.js type=module></script> | ||
<script nomodule src=index.nomodule.js></script> |
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,14 +1,20 @@ | ||
import {direction} from 'direction' | ||
|
||
/* eslint-env browser */ | ||
|
||
var $input = document.querySelector('textarea') | ||
var $output = document.querySelector('output') | ||
import {ok as assert} from 'devlop' | ||
import {direction} from 'direction' | ||
|
||
const $input = document.querySelector('textarea') | ||
const $output = document.querySelector('output') | ||
assert($input) | ||
assert($output) | ||
|
||
$output.before(' ') | ||
$input.addEventListener('input', oninputchange) | ||
|
||
oninputchange() | ||
|
||
function oninputchange() { | ||
assert($input) | ||
assert($output) | ||
$output.textContent = direction($input.value) | ||
} |
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 @@ | ||
{ | ||
"compilerOptions": { | ||
"checkJs": true, | ||
"customConditions": ["development"], | ||
"declarationMap": true, | ||
"declaration": true, | ||
"emitDeclarationOnly": true, | ||
"exactOptionalPropertyTypes": true, | ||
"lib": ["dom", "es2023"], | ||
"module": "node16", | ||
"strict": true, | ||
"target": "es2023" | ||
}, | ||
"exclude": ["dest/", "node_modules/"], | ||
"include": ["**/*.js"] | ||
} |