Rename base.css to darkvar.css
This commit is contained in:
@@ -9,13 +9,13 @@ Modern CSS theme for Jellyfin media server with custom fonts, smooth animations
|
|||||||
1. Go to Jellyfin Dashboard → General → Custom CSS
|
1. Go to Jellyfin Dashboard → General → Custom CSS
|
||||||
2. Paste this URL:
|
2. Paste this URL:
|
||||||
```
|
```
|
||||||
https://cdn.jsdelivr.net/gh/OlegTolchin/Tolfin@latest/theme/base.css
|
https://cdn.jsdelivr.net/gh/OlegTolchin/Tolfin@latest/theme/darkvar.css
|
||||||
```
|
```
|
||||||
3. Click Save
|
3. Click Save
|
||||||
|
|
||||||
### Method 2: Manual
|
### Method 2: Manual
|
||||||
|
|
||||||
1. Download `theme/base.css` from this repository
|
1. Download `theme/darkvar.css` from this repository
|
||||||
2. Go to Jellyfin Dashboard → General → Custom CSS
|
2. Go to Jellyfin Dashboard → General → Custom CSS
|
||||||
3. Paste the contents of the file
|
3. Paste the contents of the file
|
||||||
4. Click Save
|
4. Click Save
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"author": "OlegTolchin",
|
"author": "OlegTolchin",
|
||||||
"repository": "https://github.com/OlegTolchin/Tolfin",
|
"repository": "https://github.com/OlegTolchin/Tolfin",
|
||||||
"url": "https://cdn.jsdelivr.net/gh/OlegTolchin/Tolfin@latest/theme/base.css",
|
"url": "https://cdn.jsdelivr.net/gh/OlegTolchin/Tolfin@latest/theme/darkvar.css",
|
||||||
"target": "jellyfin",
|
"target": "jellyfin",
|
||||||
"categories": ["theme", "css"]
|
"categories": ["theme", "css"]
|
||||||
}
|
}
|
||||||
|
|||||||
7926
package-lock.json
generated
7926
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,63 +0,0 @@
|
|||||||
const branch = process.env.CURRENT_BRANCH || "main";
|
|
||||||
|
|
||||||
if (!branch) {
|
|
||||||
throw new Error("CURRENT_BRANCH not set");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {import("semantic-release").GlobalConfig}
|
|
||||||
*/
|
|
||||||
const config = {
|
|
||||||
branches: ["main"],
|
|
||||||
repositoryUrl: "https://github.com/JamsRepos/Jamfin.git",
|
|
||||||
plugins: [
|
|
||||||
[
|
|
||||||
"@semantic-release/commit-analyzer",
|
|
||||||
{
|
|
||||||
releaseRules: [
|
|
||||||
{ scope: "no-release", release: false },
|
|
||||||
{ type: "build", release: "patch" },
|
|
||||||
{ type: "ci", release: "patch" },
|
|
||||||
{ type: "chore", release: "patch" },
|
|
||||||
{ type: "docs", release: false },
|
|
||||||
{ type: "refactor", release: "patch" },
|
|
||||||
{ type: "style", release: "patch" },
|
|
||||||
{ breaking: true, release: "major" },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
|
||||||
"@semantic-release/release-notes-generator",
|
|
||||||
{
|
|
||||||
preset: "conventionalcommits",
|
|
||||||
presetConfig: {
|
|
||||||
types: [
|
|
||||||
{ type: "feat", section: "New Features" },
|
|
||||||
{ type: "fix", section: "Bug Fixes" },
|
|
||||||
{ type: "perf", section: "Performance Improvements", hidden: false },
|
|
||||||
{ type: "revert", section: "Commit Reverts", hidden: false },
|
|
||||||
{ type: "build", section: "Build System", hidden: false },
|
|
||||||
{ type: "ci", section: "Continuous Integration", hidden: false },
|
|
||||||
{ type: "chore", section: "Chores", hidden: false },
|
|
||||||
{ type: "docs", section: "Documentation", hidden: false },
|
|
||||||
{ type: "style", section: "Style Changes", hidden: false },
|
|
||||||
{ type: "refactor", section: "Code Refactoring", hidden: false },
|
|
||||||
{ type: "test", section: "Test Cases", hidden: true },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
|
||||||
"@semantic-release/exec",
|
|
||||||
{
|
|
||||||
successCmd: "node release.purge.js"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
if (branch === "main") {
|
|
||||||
config.plugins.splice(-2, 0, "@semantic-release/github");
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = config;
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
const axios = require('axios');
|
|
||||||
const fs = require('fs');
|
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
function getCssFiles(dir, fileList = []) {
|
|
||||||
const files = fs.readdirSync(dir);
|
|
||||||
files.forEach((file) => {
|
|
||||||
const filePath = path.join(dir, file);
|
|
||||||
const stat = fs.statSync(filePath);
|
|
||||||
if (stat.isDirectory()) {
|
|
||||||
getCssFiles(filePath, fileList);
|
|
||||||
} else if (file.endsWith('.css')) {
|
|
||||||
const relativePath = path.relative(__dirname, filePath);
|
|
||||||
fileList.push(`/gh/JamsRepos/Jamfin@latest/${relativePath}`);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return fileList;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function purgeCdnCache() {
|
|
||||||
try {
|
|
||||||
const cssDirectory = path.resolve(__dirname, './theme');
|
|
||||||
const paths = getCssFiles(cssDirectory);
|
|
||||||
|
|
||||||
const jsonPayload = {
|
|
||||||
path: paths,
|
|
||||||
};
|
|
||||||
|
|
||||||
const response = await axios.post('https://purge.jsdelivr.net/', jsonPayload, {
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const id = response.data.id;
|
|
||||||
let status = 'pending';
|
|
||||||
|
|
||||||
while (status === 'pending') {
|
|
||||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
||||||
const statusResponse = await axios.get(`https://purge.jsdelivr.net/status/${id}`);
|
|
||||||
status = statusResponse.data.status;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (status === 'finished') {
|
|
||||||
console.log('CDN cache purge finished successfully.');
|
|
||||||
} else {
|
|
||||||
console.error('CDN cache purge failed.');
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error during CDN cache purge:', error);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
purgeCdnCache();
|
|
||||||
Reference in New Issue
Block a user