sorry for doing this.
4
.gitpod.Dockerfile
vendored
|
@ -1,4 +0,0 @@
|
|||
FROM gitpod/workspace-full-vnc
|
||||
RUN sudo apt-get update && \
|
||||
sudo apt-get install -y libgtk-3-dev && \
|
||||
sudo rm -rf /var/lib/apt/lists/*
|
|
@ -1,2 +0,0 @@
|
|||
image:
|
||||
file: .gitpod.Dockerfile
|
|
@ -1,132 +0,0 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
Translations for this Code of Conduct and the original ContributorCovenant organisation can be found below.
|
||||
* [Translations](https://www.contributor-covenant.org/translations)
|
||||
* [ContributorCovenant](https://github.com/EthicalSource/contributor_covenant0)
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
cryptofyre@protonmail.com.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
16
SECURITY.md
|
@ -1,16 +0,0 @@
|
|||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Use this section to tell people about which versions of your project are
|
||||
currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 2.0.0 > | :white_check_mark: |
|
||||
| 1.5.9 | :x: |
|
||||
| < 1.5.8 | :x: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Submit an issue or contact me in the Discussions tab and ill look into it.
|
|
@ -1,4 +0,0 @@
|
|||
FROM gitpod/workspace-full-vnc
|
||||
RUN sudo apt-get update && \
|
||||
sudo apt-get install -y libgtk-3-dev && \
|
||||
sudo rm -rf /var/lib/apt/lists/*
|
80
index.js
|
@ -1,43 +1,15 @@
|
|||
require('v8-compile-cache');
|
||||
const {app, session} = require('electron');
|
||||
|
||||
// Initialize the Preferences so verbose doesnt fuck up
|
||||
const appFuncs = require('./resources/functions/app-init');
|
||||
app.ame = appFuncs()
|
||||
|
||||
// Run all the Before App is Ready Stuff
|
||||
app.ame.init.LoggingInit();
|
||||
app.ame.handler.LaunchHandler();
|
||||
app.ame.handler.InstanceHandler();
|
||||
app.ame.init.BaseInit();
|
||||
app.ame.wsapi.InitWebSockets()
|
||||
app.ame.wsapi.InitWebServer()
|
||||
const {app} = require('electron');
|
||||
|
||||
// Creating the Application Window and Calling all the Functions
|
||||
function CreateWindow() {
|
||||
if (app.isQuiting) { app.quit(); return; }
|
||||
|
||||
app.win = app.ame.win.CreateBrowserWindow() // Create the BrowserWindow
|
||||
/** CIDER **/
|
||||
const cider = require("./resources/functions/cider-win")
|
||||
cider.CreateBrowserWindow()
|
||||
const ciderwin = require("./resources/functions/cider-base")
|
||||
app.win = ciderwin
|
||||
app.win.CreateBrowserWindow()
|
||||
/** CIDER **/
|
||||
app.ame.handler.WindowStateHandler(); // Handling the Window
|
||||
app.ame.handler.PlaybackStateHandler(); // Playback Change Listener
|
||||
app.ame.handler.MediaStateHandler(); // Media Change Listener
|
||||
app.ame.handler.LyricsHandler(); // Lyrics Handling
|
||||
app.ame.handler.AudioHandler(); // Exclusive Audio Stuff
|
||||
app.ame.handler.GoogleCastHandler(); // Chromecast
|
||||
app.ame.handler.RendererListenerHandlers(); // Renderer Listeners
|
||||
app.ame.handler.SettingsHandler(); // Handles updates to settings
|
||||
|
||||
if (process.platform === 'win32' && app.transparency) { app.win.show() } // Show the window so SetThumbarButtons doesnt break
|
||||
app.ame.win.SetButtons() // Set Inactive Thumbnail Toolbar Icons or TouchBar
|
||||
app.ame.win.SetApplicationMenu()
|
||||
app.ame.win.SetTaskList()
|
||||
app.ame.utils.checkForUpdates()
|
||||
|
||||
app.ame.win.HandleBrowserWindow();
|
||||
}
|
||||
|
||||
|
||||
|
@ -48,65 +20,31 @@ function CreateWindow() {
|
|||
app.on('ready', () => {
|
||||
if (app.isQuiting) { app.quit(); return; }
|
||||
|
||||
// Apple Header tomfoolery.
|
||||
session.defaultSession.webRequest.onHeadersReceived((details, callback) => {
|
||||
if(details.url.match(/^https:\/\/store-\d{3}\.blobstore\.apple\.com/) || details.url.startsWith("https://store-037.blobstore.apple.com")){
|
||||
details.responseHeaders['Access-Control-Allow-Origin'] = '*';}
|
||||
if(details.url.includes('encoderWorker.umd.js')){
|
||||
details.responseHeaders['Content-Type'] = `text/javascript`;
|
||||
}
|
||||
details.responseHeaders['Content-Security-Policy'] = 'unsafe-inline'
|
||||
callback({ responseHeaders: details.responseHeaders })
|
||||
})
|
||||
|
||||
const {AppReady} = require('./resources/functions/init')
|
||||
AppReady()
|
||||
|
||||
console.log('[Apple-Music-Electron] Application is Ready. Creating Window.')
|
||||
console.log('[Cider] Application is Ready. Creating Window.')
|
||||
CreateWindow()
|
||||
});
|
||||
|
||||
// macOS Activate Handler
|
||||
app.on('activate', () => {
|
||||
if (app.win === null) {
|
||||
CreateWindow()
|
||||
} else {
|
||||
app.win.show()
|
||||
}
|
||||
})
|
||||
|
||||
app.on('before-quit', () => {
|
||||
console.verbose('before-quit');
|
||||
app.isQuiting = true;
|
||||
app.ame.mpris.clearActivity();
|
||||
app.ame.discord.disconnect();
|
||||
console.warn('---------------------------------------------------------------------');
|
||||
console.warn(`${app.getName()} has closed.`);
|
||||
console.warn('---------------------------------------------------------------------');
|
||||
});
|
||||
|
||||
app.on('will-quit', () => { console.verbose('will-quit'); })
|
||||
app.on('quit', () => { console.verbose('quit'); })
|
||||
app.on("window-all-closed", () => { console.verbose('window-all-closed'); if (process.platform !== 'darwin') app.quit(); });
|
||||
|
||||
// Widevine Stuff
|
||||
app.on('widevine-ready', (version, lastVersion) => {
|
||||
if (null !== lastVersion) {
|
||||
console.log('[Apple-Music-Electron][Widevine] Widevine ' + version + ', upgraded from ' + lastVersion + ', is ready to be used!')
|
||||
console.log('[Cider][Widevine] Widevine ' + version + ', upgraded from ' + lastVersion + ', is ready to be used!')
|
||||
} else {
|
||||
console.log('[Apple-Music-Electron][Widevine] Widevine ' + version + ' is ready to be used!')
|
||||
console.log('[Cider][Widevine] Widevine ' + version + ' is ready to be used!')
|
||||
}
|
||||
})
|
||||
|
||||
app.on('page-title-updated', function(e) {
|
||||
e.preventDefault()
|
||||
});
|
||||
|
||||
app.on('widevine-update-pending', (currentVersion, pendingVersion) => {
|
||||
console.log('[Apple-Music-Electron][Widevine] Widevine ' + currentVersion + ' is ready to be upgraded to ' + pendingVersion + '!')
|
||||
console.log('[Cider][Widevine] Widevine ' + currentVersion + ' is ready to be upgraded to ' + pendingVersion + '!')
|
||||
})
|
||||
|
||||
app.on('widevine-error', (error) => {
|
||||
console.log('[Apple-Music-Electron][Widevine] Widevine installation encountered an error: ' + error)
|
||||
console.log('[Cider][Widevine] Widevine installation encountered an error: ' + error)
|
||||
app.exit()
|
||||
})
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 521 B |
Before Width: | Height: | Size: 500 B After Width: | Height: | Size: 500 B |
Before Width: | Height: | Size: 493 B After Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 831 B |
Before Width: | Height: | Size: 487 B After Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 640 B After Width: | Height: | Size: 640 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 710 B After Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
@ -10,7 +10,7 @@
|
|||
<script src="vue.js"></script>
|
||||
<script src="sortable.min.js"></script>
|
||||
<script src="vuedraggable.umd.min.js"></script>
|
||||
<link rel="manifest" href="./manifest.json?v=2">
|
||||
<link rel="manifest" href="manifest.json?v=2">
|
||||
</head>
|
||||
|
||||
<body oncontextmenu="return false;">
|
||||
|
@ -226,7 +226,7 @@
|
|||
<div class="md-body search-body" v-if="search.state == 0">
|
||||
<div
|
||||
style="font-size: 17px;display:flex;flex-direction: column;justify-content: center;align-items: center;">
|
||||
<img src="./assets/search.svg" style="width: 40px;margin: 32px;opacity: 0.85">
|
||||
<img src="assets/search.svg" style="width: 40px;margin: 32px;opacity: 0.85">
|
||||
Search by song, album, artist, or lyrics.
|
||||
</div>
|
||||
</div>
|
||||
|
@ -855,7 +855,7 @@
|
|||
</div>
|
||||
</script>
|
||||
|
||||
<script src="index.js?v=1"></script>
|
||||
<script src="../../../index.js?v=1"></script>
|
||||
|
||||
</body>
|
||||
|
|
@ -262,27 +262,27 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
|
|||
}
|
||||
|
||||
.playback-button--small.search {
|
||||
background-image: url("./assets/search.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/search.svg");
|
||||
}
|
||||
|
||||
.playback-button--small.queue {
|
||||
background-image: url("./assets/list.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/list.svg");
|
||||
}
|
||||
|
||||
.playback-button--small.lyrics {
|
||||
background-image: url("./assets/quote-right.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/quote-right.svg");
|
||||
}
|
||||
|
||||
.playback-button--small.autoplay {
|
||||
background-image: url("./assets/infinity.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/infinity.svg");
|
||||
}
|
||||
|
||||
.playback-button--small.shuffle {
|
||||
background-image: url("./assets/shuffle.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/shuffle.svg");
|
||||
}
|
||||
|
||||
.playback-button--small.repeat {
|
||||
background-image: url("./assets/repeat.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/repeat.svg");
|
||||
}
|
||||
|
||||
.playback-button--small.repeat.repeatOne {
|
||||
|
@ -290,19 +290,19 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
|
|||
}
|
||||
|
||||
.playback-button.pause {
|
||||
background-image: url('./assets/pause.svg');
|
||||
background-image: url('oldshit/resources/web-remote/assets/pause.svg');
|
||||
}
|
||||
|
||||
.playback-button.play {
|
||||
background-image: url('./assets/play.svg');
|
||||
background-image: url('oldshit/resources/web-remote/assets/play.svg');
|
||||
}
|
||||
|
||||
.playback-button.next {
|
||||
background-image: url('./assets/forward.svg');
|
||||
background-image: url('oldshit/resources/web-remote/assets/forward.svg');
|
||||
}
|
||||
|
||||
.playback-button.previous {
|
||||
background-image: url('./assets/backward.svg');
|
||||
background-image: url('oldshit/resources/web-remote/assets/backward.svg');
|
||||
}
|
||||
|
||||
.playback-buttons {
|
||||
|
@ -320,12 +320,12 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
|
|||
}
|
||||
|
||||
.player-volume-glyph.decrease {
|
||||
background-image: url("./assets/volume-down.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/volume-down.svg");
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.player-volume-glyph.increase {
|
||||
background-image: url("./assets/volume-up.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/volume-up.svg");
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
|
@ -382,7 +382,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
|
|||
background-size: 16px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("./assets/arrow-left.svg");
|
||||
background-image: url("oldshit/resources/web-remote/assets/arrow-left.svg");
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
@ -476,7 +476,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
|
|||
align-items: center;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url('./assets/Grabber.svg');
|
||||
background-image: url('oldshit/resources/web-remote/assets/Grabber.svg');
|
||||
cursor: grab;
|
||||
}
|
||||
|