Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Adjust deploy pipeline for vite and repo name #11

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
f8e362e
can't merge current state of main for some reason; saving work for no…
mapachurro Apr 16, 2024
d215e30
Merge branch 'main' into search-bar
mapachurro Apr 16, 2024
856c243
remove index from root
mapachurro Apr 22, 2024
aeff8ae
rename locale folders
mapachurro Apr 22, 2024
057371b
SEARCH BAR, but it doesn't work
mapachurro Apr 22, 2024
3039050
remove vercel analytics stuff, don't need it
mapachurro Apr 22, 2024
373b512
removing vercentacles, update package.json, name package.json
mapachurro Apr 22, 2024
801a1a8
console log commenting search index; working on rendering search comp…
mapachurro Apr 22, 2024
9319853
Search function, but WORKING
mapachurro Apr 22, 2024
3f41dcb
created .json file of terms
mapachurro Apr 23, 2024
41edf7a
terms_linked.jsx has linked definitions
mapachurro Apr 23, 2024
e1a4ead
WORKING with link texts in definitions, need to parse the weirdly-for…
mapachurro Apr 23, 2024
89903b7
terms_linked.js correctly generating links, but with escape characters
mapachurro Apr 30, 2024
0d2a688
Saving state; about to adjust script to create JSX, rather than strin…
mapachurro Apr 30, 2024
459eeb9
somewhat working. Weird spaces between words.
mapachurro May 20, 2024
3ac32b6
save state before beginning react-router-dom refactor
mapachurro May 22, 2024
936b061
FUNCTIONAL ENGLISH APP
mapachurro May 29, 2024
01caa84
add logo
mapachurro May 29, 2024
6408578
Merge pull request #1 from mapachurro/term-link
mapachurro May 29, 2024
c260bdb
update deploy script and vite config
mapachurro May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: GitHub Pages

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Also does automated updates on PR
push:
branches:
- main
Expand All @@ -23,7 +20,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "21"
node-version: '16' # Ensure this matches your project requirements

- name: Cache dependencies
uses: actions/cache@v4
Expand All @@ -38,7 +35,6 @@ jobs:

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./dist # Default build directory for Vite
4 changes: 1 addition & 3 deletions data/export-definitions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const exportDefinitions = {
"0x API": {
"term": "0x API",
"phonetic": "",
"partOfSpeech": "",
"term": "0x API",,
"definition": (
<>
The 0x API is the liquidity and data endpoint for DeFi. It lets you access aggregated liquidity from tens of on-chain and off-chain decentralized exchange networks, across multiple blockchains. It comes with many parameters to customize your requests for your application and your users:\n\nAPI References
Expand Down
1 change: 1 addition & 0 deletions i18n/locales/src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions i18n/locales/src/i18n/locales/es/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
22 changes: 22 additions & 0 deletions i18next-scanner.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const path = require('path');

module.exports = {
input: ['src/**/*.{js,jsx}'], // Specify the input files to scan
output: 'src/i18n/locales/', // Specify the output directory for the translation files
options: {
debug: true, // Enable debugging
removeUnusedKeys: false, // Remove unused translation keys
func: {
list: ['i18next.t', 'i18n.t'], // List of functions to scan for translation keys
extensions: ['.js', '.jsx'] // File extensions to scan
},
lngs: ['en', 'es', 'ar', 'de', 'fr', 'id', 'it', 'ja', 'ko', 'nl', 'pt-br', 'ru', 'th', 'tl', 'tr', 'uk', 'vi', 'zh-cn'], // List of languages to generate translation files for
ns: ['translation'], // Namespace to use for translation keys
defaultLng: 'en', // Default language
resource: {
loadPath: 'src/i18n/locales/{{lng}}/{{ns}}.json', // Path to load existing translation files
savePath: 'src/i18n/locales/{{lng}}/{{ns}}.json', // Path to save updated translation files
jsonIndent: 2 // Indentation for the JSON files
}
}
};
12 changes: 0 additions & 12 deletions index.jsx

This file was deleted.

Loading
Loading