Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
Updated Copyright Notice
Browse files Browse the repository at this point in the history
Signed-off-by: Arpan Mahanty <[email protected]>
  • Loading branch information
ShadowXBoss696 committed May 6, 2023
1 parent 7d85818 commit 6b48759
Show file tree
Hide file tree
Showing 38 changed files with 259 additions and 1,311 deletions.
7 changes: 7 additions & 0 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<!--
~ Copyright 2023 by JukeBox Developers. All rights reserved.
~
~ This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
~ Please see the LICENSE file that should have been included as part of this package.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.jukeboxio.jukebox">
<!-- The INTERNET permission is required for development. Specifically,
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<!--
~ Copyright 2023 by JukeBox Developers. All rights reserved.
~
~ This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
~ Please see the LICENSE file that should have been included as part of this package.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.jukeboxio.jukebox">
<application
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Copyright 2023 by JukeBox Developers. All rights reserved.
*
* This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
* Please see the LICENSE file that should have been included as part of this package.
*/

package org.jukeboxio.jukebox

import io.flutter.embedding.android.FlutterActivity
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/main/res/drawable-v21/launch_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2023 by JukeBox Developers. All rights reserved.
~
~ This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
~ Please see the LICENSE file that should have been included as part of this package.
-->

<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/main/res/drawable/launch_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2023 by JukeBox Developers. All rights reserved.
~
~ This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
~ Please see the LICENSE file that should have been included as part of this package.
-->

<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2023 by JukeBox Developers. All rights reserved.
~
~ This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
~ Please see the LICENSE file that should have been included as part of this package.
-->

<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2023 by JukeBox Developers. All rights reserved.
~
~ This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
~ Please see the LICENSE file that should have been included as part of this package.
-->

<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<!--
~ Copyright 2023 by JukeBox Developers. All rights reserved.
~
~ This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
~ Please see the LICENSE file that should have been included as part of this package.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.jukeboxio.jukebox">
<!-- The INTERNET permission is required for development. Specifically,
Expand Down
7 changes: 7 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#

org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
7 changes: 7 additions & 0 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
Empty file removed jukebox/__init__.py
Empty file.
5 changes: 0 additions & 5 deletions jukebox/api.py

This file was deleted.

11 changes: 0 additions & 11 deletions jukebox/events.py

This file was deleted.

18 changes: 0 additions & 18 deletions jukebox/main.py

This file was deleted.

Empty file removed jukebox/users.py
Empty file.
7 changes: 7 additions & 0 deletions lib/Helpers/logging.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Copyright 2023 by JukeBox Developers. All rights reserved.
*
* This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
* Please see the LICENSE file that should have been included as part of this package.
*/

import 'package:flutter/cupertino.dart';

enum Level {
Expand Down
7 changes: 7 additions & 0 deletions lib/Screens/Home/home.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Copyright 2023 by JukeBox Developers. All rights reserved.
*
* This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
* Please see the LICENSE file that should have been included as part of this package.
*/

import 'package:flutter/material.dart';
import 'package:jukebox/Helpers/logging.dart';

Expand Down
7 changes: 7 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Copyright 2023 by JukeBox Developers. All rights reserved.
*
* This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
* Please see the LICENSE file that should have been included as part of this package.
*/

import 'package:beamer/beamer.dart';
import 'package:flutter/material.dart';

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions misc/backup/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

#
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#

set -e

# activate our virtual environment here
. "$SETUP_HOME/.venv/bin/activate"

# You can put other setup logic here

# Evaluating passed command:
exec "$@"
8 changes: 8 additions & 0 deletions misc/gunicorn.conf.py → misc/backup/gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

from jukebox.settings import settings
from jukebox.utils import NUM_CORES

Expand Down
8 changes: 8 additions & 0 deletions misc/backup/jukebox/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

13 changes: 13 additions & 0 deletions misc/backup/jukebox/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

from fastapi import APIRouter

router = APIRouter(
prefix="/api"
)
8 changes: 8 additions & 0 deletions jukebox/database.py → misc/backup/jukebox/database.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

from databases import Database, DatabaseURL

from jukebox.settings import settings
Expand Down
19 changes: 19 additions & 0 deletions misc/backup/jukebox/events.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

from jukebox.database import database


async def startup_hook() -> None:
# Establish new connection pool
await database.connect()


async def shutdown_hook() -> None:
# Close current connection pool
await database.disconnect()
26 changes: 26 additions & 0 deletions misc/backup/jukebox/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

from fastapi import FastAPI

from jukebox.api import router
from jukebox.events import startup_hook, shutdown_hook

# Let's create the Web API framework
app = FastAPI(title='JukeBox API')

app.include_router(router)
app.add_event_handler("startup", startup_hook)
app.add_event_handler("shutdown", shutdown_hook)


# Healthcheck API

@app.get("/health-check")
async def health_check() -> dict:
return {"status": "ok"}
8 changes: 8 additions & 0 deletions jukebox/security.py → misc/backup/jukebox/security.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

from fastapi import Depends, HTTPException, Request
from fastapi.security import HTTPBearer
from jose import jwt, JWTError # noqa
Expand Down
8 changes: 8 additions & 0 deletions jukebox/settings.py → misc/backup/jukebox/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

from starlette.config import Config

# The configuration will be read from different sources in the following order:
Expand Down
8 changes: 8 additions & 0 deletions misc/backup/jukebox/users.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

8 changes: 8 additions & 0 deletions jukebox/utils.py → misc/backup/jukebox/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

import pathlib
import subprocess

Expand Down
8 changes: 8 additions & 0 deletions manage.py → misc/backup/manage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright 2023 by JukeBox Developers. All rights reserved.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.
#
# This file is part of the JukeBox Music App and and is released under the "MIT License Agreement".
# Please see the LICENSE file that should have been included as part of this package.

import itertools
import os
import pathlib
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions misc/backup/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[tool.poetry]
name = "jukebox"
version = "1.0.0"
description = "An Open Source Music Streaming App."
authors = ["JukeBox Developers <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"

fastapi = "^0.95.1"
uvicorn = { extras = ["standard"], version = "^0.21.1" }
gunicorn = "^20.1.0"
pydantic = { extras = ["email"], version = "^1.10.7" }
databases = { extras = ["asyncpg"], version = "^0.7.0" }
yoyo-migrations = "^8.2.0"
psycopg2-binary = "^2.9.6"
click = "^8.1.3"
psutil = "^5.9.5"
passlib = { extras = ["bcrypt"], version = "^1.7.4" }
python-jose = { extras = ["cryptography"], version = "^3.3.0" }


[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"
11 changes: 0 additions & 11 deletions misc/docker-entrypoint.sh

This file was deleted.

Loading

0 comments on commit 6b48759

Please sign in to comment.