Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change "normal" mode to unsorted #38

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"node": true,
"es2021": true
},
"root": true,
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "ignoreRestSiblings": true, "argsIgnorePattern": "(^_)|(state)" }
]
}
}
103 changes: 53 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,58 @@ name: Build
env:
CARGO_TERM_COLOR: always

on: [push]
on: pull_request

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16.x'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev \
webkit2gtk-4.0 libappindicator3-dev \
librsvg2-dev patchelf libdbus-1-dev \
pkg-config

- name: Fetch Node.js Dependencies
run: yarn

- name: Build Release version
run: yarn tauri build

- name: Upload AppImage
uses: actions/[email protected]
with:
name: ark-shelf-desktop.AppImage
path: ./target/release/bundle/appimage/ark-shelf-desktop_*_amd64.AppImage

- name: Upload .deb build
uses: actions/[email protected]
with:
name: ark-shelf-desktop.deb
path: ./target/release/bundle/deb/ark-shelf-desktop_*_amd64.deb

- name: Upload binary build
uses: actions/[email protected]
with:
name: ark-shelf-desktop
path: ./target/release/ark-shelf-desktop
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16.x'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev \
webkit2gtk-4.0 libappindicator3-dev \
librsvg2-dev patchelf libdbus-1-dev \
pkg-config

- name: Fetch Node.js Dependencies
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Build Release version
run: pnpm tauri build

- name: Upload AppImage
uses: actions/[email protected]
with:
name: ark-shelf-desktop.AppImage
path: ./src-tauri/target/release/bundle/appimage/*.AppImage

- name: Upload .deb build
uses: actions/[email protected]
with:
name: ark-shelf-desktop.deb
path: ./src-tauri/target/release/bundle/deb/*.deb

- name: Upload binary build
uses: actions/[email protected]
with:
name: ark-shelf-desktop
path: ./src-tauri/target/release/ark-shelf-desktop
68 changes: 34 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,43 @@ name: Release the app
on:
push:
tags:
- '*'
- '*'

jobs:
release:
runs-on: ubuntu-latest
environment: Development
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16.x'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev \
webkit2gtk-4.0 libappindicator3-dev \
librsvg2-dev patchelf libdbus-1-dev \
pkg-config

- name: Fetch Node.js dependencies
run: yarn

- name: Build Release version
run: yarn tauri build

- name: Release AppImage
uses: ncipollo/release-action@v1
with:
artifacts: "./target/release/bundle/appimage/*.AppImage"
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16.x'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev \
webkit2gtk-4.0 libappindicator3-dev \
librsvg2-dev patchelf libdbus-1-dev \
pkg-config

- name: Fetch Node.js dependencies
run: yarn

- name: Build Release version
run: yarn tauri build

- name: Release AppImage
uses: ncipollo/release-action@v1
with:
artifacts: './target/release/bundle/appimage/*.AppImage'
token: ${{ secrets.GITHUB_TOKEN }}
53 changes: 21 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
target
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
src-tauri/
src/assets/
16 changes: 16 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"printWidth": 100,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "auto",
"plugins": [
"prettier-plugin-svelte",
"prettier-plugin-organize-imports",
"prettier-plugin-tailwindcss"
],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
Loading