Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
c232bcc
added support for secure web sockets
xnetcat Apr 8, 2023
d1c59ad
Install needed deps
abcdefghijorngarbosaxyz Jun 27, 2023
39d700e
Prepare environment for vue-ts
abcdefghijorngarbosaxyz Jun 27, 2023
0bde24e
Refactor some core files to TS
abcdefghijorngarbosaxyz Jun 27, 2023
5e8204b
Add some api functions, store, composables, utils
abcdefghijorngarbosaxyz Jun 27, 2023
f4c17a4
Add some functions on API
abcdefghijorngarbosaxyz Jun 28, 2023
189be24
Add some components, populate settings
abcdefghijorngarbosaxyz Jun 28, 2023
57418d0
Reset styles to use daisyui instead
abcdefghijorngarbosaxyz Jun 28, 2023
3f9ee65
Add Settings component
abcdefghijorngarbosaxyz Jun 29, 2023
58ea279
Add themes, theme changer
abcdefghijorngarbosaxyz Jun 29, 2023
587dfe0
Add nav logo and app_version
abcdefghijorngarbosaxyz Jun 29, 2023
a95ed95
Settings modal -> drawer, add some options
abcdefghijorngarbosaxyz Jul 1, 2023
0932f81
Add discord link on nav
abcdefghijorngarbosaxyz Jul 1, 2023
261a3e0
Fix nav mobile layout
abcdefghijorngarbosaxyz Jul 1, 2023
343d431
Accept only .json on config upload
abcdefghijorngarbosaxyz Jul 1, 2023
b4590d3
Delete dist, fix conflicts
abcdefghijorngarbosaxyz Jul 1, 2023
5709ed6
Remove config.js merge conflict
abcdefghijorngarbosaxyz Jul 2, 2023
cfc992e
Add bitrate settings
abcdefghijorngarbosaxyz Jul 2, 2023
6d718d9
Add search, queue, footer layouts
abcdefghijorngarbosaxyz Jul 2, 2023
2fcc18b
Add search input and "hideable" alert
abcdefghijorngarbosaxyz Jul 2, 2023
7cbe9f7
Patch Alert component -> success, error, warning
abcdefghijorngarbosaxyz Jul 3, 2023
d0e9748
Fix typo on search div class
abcdefghijorngarbosaxyz Jul 3, 2023
50376b7
Reset layouts. Prepare for vue-router
abcdefghijorngarbosaxyz Jul 3, 2023
d1995b7
Add default settings getter
abcdefghijorngarbosaxyz Jul 11, 2023
46ae5fc
!!RESET
abcdefghijorngarbosaxyz Jul 14, 2023
1fbe350
REBASE: svelte init
abcdefghijorngarbosaxyz Jul 14, 2023
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
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
112 changes: 9 additions & 103 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,104 +1,10 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
# dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
resolution-mode=highest
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
11 changes: 0 additions & 11 deletions .prettierrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/extensions.json

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

46 changes: 24 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
# web frontend for spotdl
# create-svelte

This repo currently serves as the content center for the client-side code.
Each time `spotdl web` is run, the latest build gets copied from this repo. The latest build can be found under `dist/`
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

## Locally
## Creating a project

```
spotdl web
If you're seeing this, you've probably already done this step. Congrats!

```bash
# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app
```

## Selfhost
## Developing

coming soon
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```
```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Build from source
## Building

git clone the repo
`npm i`
`npm run dev`
`npm build`
To create a production version of your app:

`npm i -g serve`
`serve ./dist`
```bash
npm run build
```

Powered by:
You can preview the production build with `npm run preview`.

- Vue
- Vite
- daisyUI
- Tailwind CSS
- Iconify
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
7 changes: 0 additions & 7 deletions dist/assets/index-2880774d.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/index-711a1c65.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/spotdl-5dcb64c0.svg

This file was deleted.

Binary file removed dist/favicon.ico
Binary file not shown.
15 changes: 0 additions & 15 deletions dist/index.html

This file was deleted.

13 changes: 0 additions & 13 deletions index.html

This file was deleted.

Loading