Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
305 commits
Select commit Hold shift + click to select a range
67f166f
Merge pull request #118 from henryk86/fixes
SciLor Sep 20, 2024
3603f6a
fixed bug api call encoding on server
henryk86 Sep 20, 2024
c4eea30
overworked select file functionality, separated filebrowser for viewi…
henryk86 Sep 21, 2024
4e4982d
improved set create directory base path
henryk86 Sep 21, 2024
c13894b
add select / deselect on double click
henryk86 Sep 21, 2024
89c2dd7
Allow play all encodable files in teddyCloud audioplayer
henryk86 Sep 21, 2024
1bb9f3f
hide move icon if only folders are selected
henryk86 Sep 21, 2024
7e6498c
minor design improvement
henryk86 Sep 21, 2024
0b043a4
made filebrowser table header sticky
henryk86 Sep 21, 2024
901d73c
Merge pull request #119 from henryk86/fixes
SciLor Sep 21, 2024
cd5a25c
adapted wiki link
henryk86 Sep 21, 2024
bd3df51
switch crypto.randomUUID() to another function as crypto is only avai…
henryk86 Sep 21, 2024
f3aa28f
better UUID function
henryk86 Sep 21, 2024
71953d1
Merge pull request #120 from henryk86/newThings
SciLor Sep 21, 2024
fa5aeb6
added some input validation functionality
henryk86 Sep 22, 2024
babface
reworked rename file
henryk86 Sep 22, 2024
1750a4b
fixing bugs
henryk86 Sep 22, 2024
db1fe72
some stabilization
henryk86 Sep 22, 2024
70e08ee
minor improvement
henryk86 Sep 22, 2024
a60b1c4
reordered functions and cleanup
henryk86 Sep 22, 2024
59ae9c4
changed wiki link on homepage too
henryk86 Sep 22, 2024
b2dc7bd
Merge pull request #121 from henryk86/newThings
SciLor Sep 22, 2024
73de965
Show hint that latest firmware should be installed before setting box…
henryk86 Sep 28, 2024
9dff434
fix new default for last online if box never connected after TC restart
henryk86 Sep 29, 2024
be7f1fd
added spanish translation, added support of overwrite certificates in…
henryk86 Oct 3, 2024
f2472cf
finalizing
henryk86 Oct 3, 2024
fee8225
Merge pull request #125 from henryk86/develop
SciLor Oct 4, 2024
7eed91c
improved docu manual extract certificates
henryk86 Oct 4, 2024
05b91dc
Merge pull request #131 from henryk86/develop
SciLor Oct 4, 2024
7d149a5
split errors for toniebox / toniebox custom
SciLor Oct 4, 2024
237ef22
Update ChangelogPage.tsx
henryk86 Oct 5, 2024
c2fc01d
Merge pull request #134 from henryk86/develop
SciLor Oct 5, 2024
1a89b19
next button in audio player now working
henryk86 Oct 6, 2024
8e97cb7
Merge pull request #136 from henryk86/develop
SciLor Oct 6, 2024
caf4dc4
fixed next button if no meta data is available
henryk86 Oct 6, 2024
8e03cef
Merge pull request #137 from henryk86/develop
SciLor Oct 6, 2024
72d4ada
gh-135 show error in case of failed upload
henryk86 Oct 7, 2024
11d21ab
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 7, 2024
8783eed
Merge pull request #138 from henryk86/develop
SciLor Oct 7, 2024
42f7c17
gh-127 added translation overview page, prepared gh-128, gh-126, gh-130
henryk86 Oct 8, 2024
f273b6c
some cleaning
henryk86 Oct 8, 2024
b30e3f2
sort translation json
henryk86 Oct 8, 2024
eacacbb
Merge pull request #139 from henryk86/develop
SciLor Oct 9, 2024
38e97fd
try to solve number error
henryk86 Oct 9, 2024
44186d9
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 9, 2024
1f94b0e
npm audit fix
henryk86 Oct 9, 2024
d074223
Merge pull request #140 from henryk86/develop
SciLor Oct 9, 2024
0453d30
add stub web_version.json
SciLor Oct 10, 2024
898f83f
Improved AudioEncoder (leave selected Dir path and prefill filename i…
henryk86 Oct 10, 2024
c94dd1a
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 10, 2024
890784a
Merge pull request #141 from henryk86/develop
SciLor Oct 10, 2024
78713e9
show error message if frontend does not fit to backend
henryk86 Oct 10, 2024
fca1ec5
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 10, 2024
a0a1b85
follow frontend.ignore_web_version_mismatch setting
henryk86 Oct 10, 2024
fd4059a
fixed name
henryk86 Oct 10, 2024
766a963
Merge pull request #142 from henryk86/develop
SciLor Oct 10, 2024
50844b4
fix filtering in filebrowser
henryk86 Oct 11, 2024
644673e
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 11, 2024
fd66390
Update ChangelogPage.tsx
henryk86 Oct 11, 2024
85c718a
show warning if webkit is used and play is clicked
henryk86 Oct 11, 2024
dd5adcb
fixed ogg/opus support detection
henryk86 Oct 12, 2024
a87b5d1
first draft improved CC3200 patching
henryk86 Oct 13, 2024
ad7b6af
fixed wrong link, removed unused page
henryk86 Oct 13, 2024
8e144c7
fixed typo in translation key
henryk86 Oct 13, 2024
34127f0
harmonizied to esp32 version
henryk86 Oct 13, 2024
f718da7
added content to applying patches page, reformatted created patch json
henryk86 Oct 14, 2024
02070e1
identify boxversion according mac, support frontend.confirm_audioplay…
henryk86 Oct 14, 2024
518ba93
secured api call with encodeuricomponent
henryk86 Oct 14, 2024
e3df8ab
fix translation
henryk86 Oct 14, 2024
d2bf22b
open macvendors in new tab
henryk86 Oct 14, 2024
23624ba
improve translation
henryk86 Oct 14, 2024
2727574
fixed copy pasta bug
henryk86 Oct 15, 2024
44f4a77
gh-145 added images for chip detection
henryk86 Oct 15, 2024
2d319b7
improved desc
henryk86 Oct 15, 2024
b57cfa1
added tabs
henryk86 Oct 16, 2024
afee7a0
gh-146 added open box guide (first version with links only)
henryk86 Oct 16, 2024
00b99d2
updated changelog
henryk86 Oct 16, 2024
0982d3b
added issue links
henryk86 Oct 16, 2024
da2a32b
added linkin in boxsetup
henryk86 Oct 16, 2024
a422b77
Merge pull request #143 from henryk86/develop
SciLor Oct 16, 2024
9f02e92
fixed missing no support message on play tonie action
henryk86 Oct 17, 2024
92695b0
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 17, 2024
ddca3f5
improved pattern checking for ogg/opus files
henryk86 Oct 17, 2024
a908d4c
reduced filesze
henryk86 Oct 17, 2024
8c225d5
added boxsetup overview page
henryk86 Oct 17, 2024
b7bda4d
optimize space
henryk86 Oct 17, 2024
27e6315
fixed links
henryk86 Oct 17, 2024
6ce7352
refactored detectColorScheme function
henryk86 Oct 17, 2024
510f3d8
Merge pull request #147 from henryk86/develop
SciLor Oct 17, 2024
f8f1247
resize images
henryk86 Oct 17, 2024
731a3f6
Merge branch 'develop' of https://github.com/henryk86/teddycloud_web …
henryk86 Oct 17, 2024
350e693
resize again
henryk86 Oct 17, 2024
13e8d76
improving images
henryk86 Oct 17, 2024
7f0ceb2
size reduction
henryk86 Oct 17, 2024
8892d4d
added clamp hint on esp32 flashing page
henryk86 Oct 18, 2024
33ee292
minor improvements text
henryk86 Oct 18, 2024
1c99886
marked esp32 text on pcb
henryk86 Oct 18, 2024
dd000a1
added first version of new CC3235 flashing guide
henryk86 Oct 18, 2024
5f1f0df
added some more intro texts to cc3200 flashing guide
henryk86 Oct 18, 2024
bc854b6
completely copied cc3235 guide from wiki to teddycloud
henryk86 Oct 18, 2024
899fb01
minor translation improvement
henryk86 Oct 18, 2024
299aac5
Merge pull request #148 from henryk86/develop
SciLor Oct 18, 2024
1db26c4
added CodeSnippet Component with copy functionality
henryk86 Oct 18, 2024
1143499
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 18, 2024
0801a9a
fixed display bug language table
henryk86 Oct 18, 2024
35be3c2
Merge branch 'develop' of https://github.com/henryk86/teddycloud_web …
henryk86 Oct 18, 2024
5bb30d3
added some pictures as help
henryk86 Oct 19, 2024
5c71faa
updated chnagelog, fixed some things in codeSnippet element
henryk86 Oct 19, 2024
f24dd9a
group images
henryk86 Oct 19, 2024
e7f1030
some refactoring, added esp32 legacy way
henryk86 Oct 20, 2024
e3628d2
minor improvements
henryk86 Oct 20, 2024
482f1a4
updated changelog
henryk86 Oct 20, 2024
95d746d
improved german translation
henryk86 Oct 20, 2024
4ebce3f
added recheck button in available boxes modal
henryk86 Oct 20, 2024
de729fe
remove auto added space
henryk86 Oct 20, 2024
d83840f
typo
henryk86 Oct 20, 2024
5b7710f
moved connect urat collapse into the uart description element
henryk86 Oct 20, 2024
338f1f4
Merge pull request #149 from henryk86/develop
SciLor Oct 20, 2024
12eb3e9
Change translation, optimize step page
henryk86 Oct 20, 2024
52eedc5
minor opt
henryk86 Oct 20, 2024
545adae
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 20, 2024
12e2dbe
fixed display bug on ipad/iphone
henryk86 Oct 21, 2024
8834e74
esp32 legacy, skip dns step if already done in previous step
henryk86 Oct 21, 2024
6739af1
Merge branch 'refs/heads/main' into feat/vite
holgerb Oct 21, 2024
8c2641a
chore: Update packages.
holgerb Oct 21, 2024
9c9fb2e
overworked https but not webserial supporting esp page content, impro…
henryk86 Oct 21, 2024
4881b0b
Merge pull request #150 from henryk86/develop
SciLor Oct 21, 2024
0822b3d
gh-152 fixed image bug on iPad/iPhone, some more related refactoring,…
henryk86 Oct 22, 2024
8f065ab
gh-151 removed move and rename functionality from tonies - content
henryk86 Oct 22, 2024
4d2a0d7
Merge pull request #153 from henryk86/develop
SciLor Oct 22, 2024
0497f06
gh-146 extended Open Toniebox guide
henryk86 Oct 22, 2024
083c179
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 22, 2024
da5403f
updated tc version
henryk86 Oct 22, 2024
0e22a93
Merge branch 'develop' of https://github.com/henryk86/teddycloud_web …
henryk86 Oct 22, 2024
46b0d2b
gh-154 added custom no data message
henryk86 Oct 22, 2024
97aa6be
add link to open box guide in box setup overview
henryk86 Oct 23, 2024
1fba85b
Merge pull request #155 from henryk86/develop
SciLor Oct 24, 2024
eef7f84
fixed build error
henryk86 Oct 24, 2024
7b129a6
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 24, 2024
ecf1afc
Merge pull request #156 from henryk86/develop
SciLor Oct 24, 2024
095e8f4
fixed bug esp32 flashing, sorted translation jsons, minor optical cha…
henryk86 Oct 25, 2024
735f0ce
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 25, 2024
43ffb12
remove unnecessary comments
henryk86 Oct 25, 2024
d169ede
added latest features to feature page, added translation to community…
henryk86 Oct 25, 2024
f0beb46
sorted translation json
henryk86 Oct 25, 2024
e4d9fc1
Merge pull request #157 from henryk86/develop
SciLor Oct 26, 2024
e2c61f1
Add Loading and Custom No Data
henryk86 Oct 26, 2024
368aea4
overworked getBoxModelImages, moved urls to constants class
henryk86 Oct 26, 2024
bc6ba03
gh-129 added overlay with spinner after dir click
henryk86 Oct 26, 2024
afd4e22
Merge branch 'develop' of https://github.com/henryk86/teddycloud_web …
henryk86 Oct 26, 2024
8f7c508
minor optimizations
henryk86 Oct 26, 2024
d3cbe48
removed testcode
henryk86 Oct 26, 2024
8ade54d
completion of features
henryk86 Oct 26, 2024
68016ca
added legacy method to overview
henryk86 Oct 26, 2024
85b3d0a
removed double load in dev mode
henryk86 Oct 26, 2024
96b8844
Merge pull request #158 from henryk86/develop
SciLor Oct 26, 2024
71988f9
added lightweigt preview images
henryk86 Oct 27, 2024
546c435
added version over view page, updated package.json, added new version…
henryk86 Oct 27, 2024
d2c1e0b
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Oct 27, 2024
9cf986b
removed unused uitest file
henryk86 Oct 27, 2024
3d6ac93
Merge branch 'develop' of https://github.com/henryk86/teddycloud_web …
henryk86 Oct 27, 2024
59c74ba
improved guides
henryk86 Oct 29, 2024
909ca13
extended CC3235 guide
henryk86 Oct 30, 2024
f3b2acc
extended and refactored cc3235 flashing guide
henryk86 Oct 31, 2024
4d9cdb3
removed sudo
henryk86 Oct 31, 2024
f603321
some refactoring, moved types in own files, sorted imports, introduce…
henryk86 Nov 1, 2024
3b1e8bd
removed unused file
henryk86 Nov 1, 2024
1133bf4
fixed wrong import
henryk86 Nov 1, 2024
e5faab8
fixed some failed ide automated refactoring things
henryk86 Nov 1, 2024
4f6dd54
support local hosted images in dev mode
henryk86 Nov 1, 2024
5de2088
show info modal on click in audio player (if its a taf file)
henryk86 Nov 1, 2024
bb7c2a5
show played content in info modal
henryk86 Nov 1, 2024
682334b
extended audioplayer
henryk86 Nov 1, 2024
e2e282c
added sponsor link
henryk86 Nov 1, 2024
3e2a77b
fixed useEffect
henryk86 Nov 1, 2024
ebb7c00
set filled heart
henryk86 Nov 2, 2024
84663b1
minor improvements from github issues
henryk86 Nov 2, 2024
f22d5d9
some more explanation
henryk86 Nov 2, 2024
0855742
clear radio stream field and artiucle search field on open tonie edit…
henryk86 Nov 2, 2024
7415e0b
set flags on source change
henryk86 Nov 2, 2024
3e5cda2
fixed buggy behaviour on not straight forward source selection
henryk86 Nov 2, 2024
a20b958
fixed warning
henryk86 Nov 2, 2024
080a4ab
Merge pull request #159 from henryk86/develop
SciLor Nov 2, 2024
7f9ce69
fixed display bug
henryk86 Nov 3, 2024
16f4718
improved audioplayer, avoid width changes with every new track
henryk86 Nov 3, 2024
bca8255
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Nov 3, 2024
ad1fda2
switched icon
henryk86 Nov 3, 2024
875f001
fixed bug display tonies.custom.json snippet, added filebrowser help
henryk86 Nov 3, 2024
b3ee4e5
added missing translation, sorted json
henryk86 Nov 3, 2024
a0cd7a9
fixed audio position bug
henryk86 Nov 3, 2024
be9f57c
minor fix element use
henryk86 Nov 3, 2024
73ce061
fixed zIndex
henryk86 Nov 3, 2024
9cb09fa
imprvements, but mediasession audio position still buggy
henryk86 Nov 3, 2024
2b1592e
gh-164 show disabled BoxineCloud (orange instead red), gh-167 fetch c…
henryk86 Nov 4, 2024
7c96cf2
changelog
henryk86 Nov 4, 2024
f9f147b
Merge pull request #163 from henryk86/develop
SciLor Nov 4, 2024
3263245
poc notifications
henryk86 Nov 5, 2024
6debd9f
added notification list, refactored tonieCard to use notifications
henryk86 Nov 6, 2024
15d8124
prevent flickering
henryk86 Nov 6, 2024
91db580
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Nov 6, 2024
78111cf
minor fix
henryk86 Nov 6, 2024
a556414
Merge branch 'develop' of https://github.com/henryk86/teddycloud_web …
henryk86 Nov 6, 2024
f477fdd
some more optimizations for mobile and tablet
henryk86 Nov 6, 2024
b447c70
more adaptions
henryk86 Nov 7, 2024
684a057
improved notification list page
henryk86 Nov 7, 2024
b15616f
fixed gh-169
henryk86 Nov 7, 2024
a145fde
Merge pull request #168 from henryk86/develop
SciLor Nov 7, 2024
5cdba71
fixed minor bugs
henryk86 Nov 8, 2024
f1e9e96
try to fixed fetch boxine status after enable cloud again, added noti…
henryk86 Nov 8, 2024
e25899b
improved solution
henryk86 Nov 8, 2024
9889565
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Nov 8, 2024
cb06397
fixed bug playing taf files without meta information
henryk86 Nov 8, 2024
a5d2647
fixed multiple bug on audio player, improved functionality
henryk86 Nov 9, 2024
eb40a6f
removed debug log
henryk86 Nov 9, 2024
9003058
and some mor improvement
henryk86 Nov 9, 2024
ac337dd
removed debug message
henryk86 Nov 9, 2024
7bf9c39
fixed player length for other audio files
henryk86 Nov 9, 2024
2d528e2
continuing the way to notification completion
henryk86 Nov 9, 2024
901c225
proceed switch to notifications
henryk86 Nov 9, 2024
930c5eb
gh-174 fixed bug
henryk86 Nov 9, 2024
a00c74d
fixed minor bug
henryk86 Nov 9, 2024
c6f889f
prepared hidden tag in fileApi / filebrowser
henryk86 Nov 10, 2024
1b0fb3b
finished filebrowser migration to notifications
henryk86 Nov 10, 2024
97bc693
fixed wrong translation key
henryk86 Nov 10, 2024
d17df41
refactoring. moved OverlayContentDIrectories into TeddyCloudContext
henryk86 Nov 10, 2024
956120e
fimaöized hide marking, updated Changelog
henryk86 Nov 10, 2024
cf74b83
Merge pull request #172 from henryk86/develop
SciLor Nov 11, 2024
f73b48e
notification in selectfile browser
henryk86 Nov 11, 2024
0b05fc6
use notification in tonieinfomodal
henryk86 Nov 11, 2024
a431c78
switch to notifications esp32flashing
henryk86 Nov 11, 2024
e47dbe2
use notifications in audio encoder
henryk86 Nov 11, 2024
eb0e5f0
proceed with migration to notifications
henryk86 Nov 11, 2024
b5dcfad
finalkized notification migration for now
henryk86 Nov 11, 2024
21e1bd2
only allow der files as certificates to be uploaded
henryk86 Nov 11, 2024
b5ca0a0
updated changelog
henryk86 Nov 11, 2024
37d9fe2
Merge branch 'toniebox-reverse-engineering:develop' into develop
henryk86 Nov 11, 2024
8841cca
gh-177 added c2.der download possibilities
henryk86 Nov 11, 2024
d8d9543
Merge branch 'develop' of https://github.com/henryk86/teddycloud_web …
henryk86 Nov 11, 2024
9ad8f48
moved download button
henryk86 Nov 11, 2024
12440bb
distinct between ca und c2
henryk86 Nov 11, 2024
bf28f6f
adapted doc
henryk86 Nov 11, 2024
d318053
added hint
henryk86 Nov 11, 2024
c6f6b76
adapted changelog
henryk86 Nov 11, 2024
745b916
gh-162 overworked filebrowser directory visualization and multiselect…
henryk86 Nov 12, 2024
cd123a5
update changelog
henryk86 Nov 12, 2024
b624081
Merge pull request #176 from henryk86/develop
SciLor Nov 12, 2024
06ff867
Merge remote-tracking branch 'upstream/develop' into develop
holgerb Nov 12, 2024
c884822
chore: Add idea files to ignore
holgerb Nov 12, 2024
d64df49
Merge branch 'refs/heads/develop' into feat/vite
holgerb Nov 12, 2024
a7a465f
chore: Update packges
holgerb Nov 12, 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
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
npm:
patterns:
- "*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
groups:
github-actions:
patterns:
- "*"
29 changes: 29 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Linting

on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "main", "develop" ] # Until we wa are on master
pull_request:
branches: [ "main" ]

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

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Install npm dependencies
run: npm ci

- name: Run lint script
run: npm run lint
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,13 @@ yarn-debug.log*
yarn-error.log*
localhost-key.pem
localhost.pem
mkcert.exe
src/setupProxy.js
public/img_unknown.png

/.idea/.gitignore
/.idea/misc.xml
/.idea/modules.xml
/.idea/teddycloud_web.iml
/.idea/vcs.xml
/package-lock.json
65 changes: 57 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ If you don't need the ESP32 Box flashing section working, you can adapt the `pac
"start-https": "cross-env HTTPS=true PORT=3443 vite",
"start": "concurrently \"npm run start-http\" \"npm run start-https\"",
"build": "tsc && vite build",
"preview": "vite preview",
"api:generate": "rm -rf ./src/api && openapi-generator-cli generate -i ./api/swagger.yaml -g typescript-fetch -o ./src/api --additional-properties=typescriptThreePlus=true"
"preview": "vite preview"
},
```

Expand All @@ -55,8 +54,7 @@ to
"scripts": {
"start": "npm run start",
"build": "tsc && vite build",
"preview": "vite preview",
"api:generate": "rm -rf ./src/api && openapi-generator-cli generate -i ./api/swagger.yaml -g typescript-fetch -o ./src/api --additional-properties=typescriptThreePlus=true"
"preview": "vite preview"
},
```

Expand Down Expand Up @@ -110,7 +108,7 @@ token.*

### Usage of translations

Please use always `t("...")` instead of hard coded text. Please add the strings in the English, German and French translation Json.
Please use always `t("...")` instead of hard coded text. Please add the strings in the English, German, French and Spanish translation Json.

### Adding new API request method

Expand All @@ -123,6 +121,18 @@ If you need to add a new API request to the TeddyCloud API, please use one of th

If none of the existing methods meet your needs, add the new request to `src/api/apis/TeddyCloudApi.ts`. We prefer to have all API requests centralized in this file. One reason is the upcoming authentication for accessing the API.

### Linking to other sites

If you need to link to another source, element, or URL, please check if it is already defined in `constants.tsx`. If it is, use the existing variable instead of hardcoding the URL. If it isn’t, consider adding it as a variable in `constants.tsx` - you may need this URL more than once. Defining it as a variable ensures you only need to update it in one place if the URL changes in the future.

The following URLs have already been defined (partial list):

- tonieboxDefaultImageUrl = "https://cdn.tonies.de/thumbnails/03-0009-i.png"
- telegramGroupUrl = "https://t.me/toniebox_reverse_engineering"
- forumUrl = "https://forum.revvox.de/"
- gitHubUrl = "https://github.com/toniebox-reverse-engineering"
- wikiUrl = "https://tonies-wiki.revvox.de/docs/tools/teddycloud/"

## Tips and Tricks

### Missing img_unknown.png
Expand All @@ -143,7 +153,17 @@ Sometimes it happens, that the dev environment unexpected crashes. Even after a

### API Definitions

Ideally, the TeddyCloudApi.ts should be generated with swagger.yaml. However, it was actually changed manually and new API functions were added directly. This should be revised in the future. Until then, you should NOT generate the API with the openapitools, as this will break the frontend.
Ideally, the TeddyCloudApi.ts should be generated using OpenApiTools with the `swagger.yaml`. However, it was actually changed manually and new API functions were added directly. This should be revised in the future. Until then, you should NOT generate the API with the OpenApiTools, as this will break the frontend.

Due to security reasons we removed "@openapitools/openapi-generator-cli" from the devDependencies completely. If you want to refactor the manually changed api functions and bring back support for OpenApiTools, add it and the following in the package.json:

```json
"scripts": {
...
"api:generate": "rm -rf ./src/api && openapi-generator-cli generate -i ./api/swagger.yaml -g typescript-fetch -o ./src/api --additional-properties=typescriptThreePlus=true"
...
}
```

## General React App information

Expand All @@ -153,11 +173,23 @@ This project was bootstrapped with [Vite](https://vitejs.dev/).

## Typicale development workflow:

### Preconditions

You have `node.js` and `python` installed.

### Install dotenv

Debian: `sudo apt install python3-dotenv-cli`
#### Debian

### additional packages
`sudo apt install python3-dotenv-cli`

#### Windows

`pip install python-dotenv` \
followed by \
`pip install "python-dotenv[cli]"`

### Install additional packages

You need to install cross-env:

Expand Down Expand Up @@ -193,3 +225,20 @@ See the section about [deployment](https://vitejs.dev/guide/static-deploy.html)
You can learn more in the [Vite documentation](https://vitejs.dev/guide/).

To learn React, check out the [React documentation](https://reactjs.org/).

# Attribution

The **Open Toniebox Guide** (`src\components\tonieboxes\boxSetup\OpenBoxGuide.tsx`) is based on the following two excellent guides from iFixIt.com:

- [iFixIt[1]] [Toniebox Opening Procedure](https://www.ifixit.com/Guide/Toniebox+Opening+Procedure/124139)
- [iFixIt[2]] [Toniebox Teardown](https://www.ifixit.com/Teardown/Toniebox+Teardown/106148)

Both guides were originally written and illustrated by [Tobias Isakeit](https://www.ifixit.com/User/828031/Tobias+Isakeit), who also created all the images used here.

Special thanks to Tobias for providing such clear and detailed instructions!

The icons used are from here:

- logo.png: https://www.flaticon.com/free-icon/dog_2829818

Thanks for the original authors for these great icons.
Loading