Skip to content

Commit

Permalink
feat: migrate app from Capacitor/Tauri to PWA (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodenn authored Aug 18, 2024
1 parent 6455db8 commit 0a24d18
Show file tree
Hide file tree
Showing 312 changed files with 13,233 additions and 27,976 deletions.
5 changes: 0 additions & 5 deletions .env

This file was deleted.

3 changes: 1 addition & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 40,8 @@ module.exports = {
},
],
ignorePatterns: [
"tools",
"capacitor.config.ts",
"playwright.config.ts",
"pwa-assets.config.ts",
"vite.config.ts",
".eslintrc.js",
],
Expand Down
84 changes: 0 additions & 84 deletions .github/workflows/release.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/tauri.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/update-screenshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 1,41 @@
name: Update Playwright Screenshots

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
update-screenshots:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.45.3-jammy
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Update screenshots
run: npx playwright test screenshots.spec.ts --reporter=html --update-snapshots
- name: Upload Screenshots
uses: actions/upload-artifact@v4
with:
name: snapshots
path: tests/screenshots.spec.ts-snapshots
retention-days: 1
- name: Upload HTML report
if: always()
uses: actions/upload-artifact@v4
with:
name: html-report
path: playwright-report
retention-days: 1
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 2,6 @@

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
Expand All @@ -13,6 11,7 @@ playwright-report/

# production
/build
/dev-dist

# misc
.DS_Store
Expand All @@ -29,6 28,3 @@ npm-debug.log*

# vscode
.history

resources/ios/icon
resources/ios/splash
26 changes: 1 addition & 25 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 13,6 @@
"--disable-web-security"
],
"webRoot": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Tauri Development Debug",
"cargo": {
"args": [
"build",
"--manifest-path=./src-tauri/Cargo.toml",
"--no-default-features"
]
},
// task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json`
"preLaunchTask": "ui:dev"
},
{
"type": "lldb",
"request": "launch",
"name": "Tauri Production Debug",
"cargo": {
"args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
},
// task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
"preLaunchTask": "ui:build"
}
]
}
}
25 changes: 0 additions & 25 deletions .vscode/tasks.json

This file was deleted.

20 changes: 0 additions & 20 deletions Dockerfile.e2e

This file was deleted.

19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 20,21 @@
<img width="600" style="border-radius: 6px;" src="./resources/screenshot3.png" alt="Screenshot">
</p>

## Progressive Web App (PWA)

While **2do.txt** is fully functional in any modern web browser, the user experience is significantly enhanced when installed as a Progressive Web App (PWA). This installation offers a more native-like experience, including offline capabilities and faster access.

## Browser Compatibility

It is important to note that not all browsers fully support the File System API. For example, Safari writes files to the Origin Private File System, which is isolated from the user’s local filesystem. As a result, files saved within this system may not be accessible in the same way as they would be on a traditional filesystem. For the best experience, it is recommended to use a browser that fully supports the File System API, such as Chrome.

## About todo.txt

The **todo.txt** format is a simple set of rules that make todo.txt both human and machine-readable. The format supports priorities, creation and completion dates, projects and contexts. For more information please see http://todotxt.org/.

## Features

- Filter tasks by projects, contexts and tags
- Filter tasks by projects, contexts, and tags
- Sort tasks by due date or priority
- Group tasks by context, projects or tags
- Hide completed tasks
Expand All @@ -37,14 45,5 @@ The **todo.txt** format is a simple set of rules that make todo.txt both human a
- Autocompletion for projects, contexts and tags
- Archive completed tasks to done.txt
- Task recurrence (`rec:` tag)
- Dropbox sync
- WebDAV sync
- Dark mode
- Responsive Design
- Two different views: list and timeline
- Drag and drop support for todo.txt files

## Supported Platforms
- [Webbrowser](https://2do-txt-sodenn.vercel.app/)
- [iOS](https://apps.apple.com/in/app/2do-txt/id1597652888)
- Desktop: macOS, Windows, Linux
22 changes: 0 additions & 22 deletions capacitor.config.ts

This file was deleted.

Loading

0 comments on commit 0a24d18

Please sign in to comment.