diff --git a/res/include/md/about.md b/res/include/md/about.md index 4ff037f..cc2c270 100644 --- a/res/include/md/about.md +++ b/res/include/md/about.md @@ -6,9 +6,9 @@ Files will be removed if they have not been accessed for 120 days. When a file is downloaded the expiry time is reset to 120 days from the current day. This -only happens when someone downloads more than 1% of the whole file in a single +only happens when someone downloads more than 10% of the whole file in a single request. So if you have a 5 GB file the timer is only extended when you download -at least 50 MB. The expiry timer is not updated when it was already updated +at least 500 MB. The expiry timer is not updated when it was already updated within the last 24 hours. File expiry is often seen as a downside of pixeldrain. But keep in mind that 120 diff --git a/svelte/package-lock.json b/svelte/package-lock.json index fb1a571..70fce46 100644 --- a/svelte/package-lock.json +++ b/svelte/package-lock.json @@ -20,7 +20,7 @@ "@babel/preset-env": "^7.26.0", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^26.0.3", - "@rollup/plugin-node-resolve": "^15.3.0", + "@rollup/plugin-node-resolve": "^15.3.1", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.6", "@types/jsmediatags": "^3.9.6", @@ -1718,9 +1718,9 @@ } }, "node_modules/@rollup/plugin-node-resolve": { - "version": "15.3.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.3.0.tgz", - "integrity": "sha512-9eO5McEICxMzJpDW9OnMYSv4Sta3hmt7VtBFz5zR9273suNOydOyq/FrGeGy+KsTRFm8w0SLVhzig2ILFT63Ag==", + "version": "15.3.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.3.1.tgz", + "integrity": "sha512-tgg6b91pAybXHJQMAAwW9VuWBO6Thi+q7BCNARLwSqlmsHz0XYURtGvh/AuwSADXSI4h/2uHbs7s4FzlZDGSGA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/svelte/package.json b/svelte/package.json index bc6f077..17a0a32 100644 --- a/svelte/package.json +++ b/svelte/package.json @@ -11,7 +11,7 @@ "@babel/preset-env": "^7.26.0", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^26.0.3", - "@rollup/plugin-node-resolve": "^15.3.0", + "@rollup/plugin-node-resolve": "^15.3.1", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.6", "@types/jsmediatags": "^3.9.6", diff --git a/svelte/rollup.config.js b/svelte/rollup.config.js index f319aa4..74436eb 100644 --- a/svelte/rollup.config.js +++ b/svelte/rollup.config.js @@ -55,11 +55,11 @@ export default [ extensions: ['.svelte'], }), commonjs(), - nodeResolve(), - typescript({ - compilerOptions: { lib: ["es2015", "dom"] }, - verbatimModuleSyntax: true, + nodeResolve({ + modulePaths: [process.cwd() + "/src"], + extensions: [".svelte", ".mjs", ".js", ".json"] }), + typescript(), // Watch the `public` directory and refresh the browser on changes when // not in production diff --git a/svelte/src/home_page/FeatureTable.svelte b/svelte/src/home_page/FeatureTable.svelte index 14430b8..7aa5b5e 100644 --- a/svelte/src/home_page/FeatureTable.svelte +++ b/svelte/src/home_page/FeatureTable.svelte @@ -1,4 +1,5 @@ @@ -34,45 +35,76 @@ import OtherPlans from "./OtherPlans.svelte"; None
- €4 / month or - €40 / year
- Charged through Patreon + + + €4 / month or + €40 / year + + The Pro subscription is managed by Patreon. Patreon's own fees + and sales tax will be added to this price. After paying you need + to link your pixeldrain account to Patreon to activate the plan. +
- €1 / month minimum
- Only charged when usage is less than €1 + + €1 / month minimum +

+ The minimum fee is only charged when usage is less than €1. + This calculation is per day, the €1 amount is divided by the + number of days in the month and if your usage is lower than + that, you will be charged the minimum fee. +

+
- - info - Transfer limit - + Transfer limit
- 6 GB per day
- - Download speed is reduced to 1 MiB/s when exceeded. Max 3 concurrent - downloads + + 6 GB per day +

+ Free users are limited to downloading 6 GB per day, this + limit is linked to your IP address, even if you are logged + in to an account. +

+

+ When the download limit is exceeded the download speed is + reduced to 1 MiB/s. You can have at most three concurrent + downloads running. +

+
- 4 TB per 30 days
- - Transfer limit is used for downloading, sharing and hotlinking. No - connection limit + + 4 TB per 30 days +

+ The transfer limit is used for downloading, sharing and + hotlinking files. +

+

+ Paid plans do not have a concurrent connection limit. +

+
- €1 per TB transferred
- - Used for downloading, sharing and hotlinking. You only pay for what - you use. No connection limit + + €1 per TB transferred +

+ Prepaid does not have a transfer limit, instead you are + charged for what you use at a rate of €1 per terabyte + downloaded. This applies to downloading your own files, + other people's files and others downloading your files (if + you have hotlinking enabled in your account settings). +

+

+ Paid plans do not have a concurrent connection limit. +

+
- - info - Hotlinking - + Hotlinking
Hotlinking not supported
@@ -92,25 +124,55 @@ import OtherPlans from "./OtherPlans.svelte";
€4 / TB / month
- No limit, you only pay for what you use + No limit, you pay for what you use
- - info - File expiry - + File expiry
- 120 days (4 months) + + 120 days (4 months) +

+ Files expire when they have not been downloaded in the last + 120 days. A download is counted when more than 10% of the + whole file was downloaded in a single request. +

+
- 240 days (8 months)
- Plans without expiry are available + + 240 days (8 months) +

+ The Pro plan has 240 day file expiry. The same rules apply + as the free plan. Higher Patreon subscription plans are + available where files do not expire at all. +

+
- Files do not expire
- While prepaid subscription plan is active + + Files do not expire +

+ Files don't expire while your Prepaid plan is active. If + your credit runs out you have one week to top up your + balance. If you fail to do so your files will revert to the + regular file expiry rules. +

+
+
+ +
+ Download page customization +
+
+ None +
+
+ None +
+
+ Theme, background, header and footer image can be customized
diff --git a/svelte/src/layout/Tooltip.svelte b/svelte/src/layout/Tooltip.svelte new file mode 100644 index 0000000..07e52fb --- /dev/null +++ b/svelte/src/layout/Tooltip.svelte @@ -0,0 +1,71 @@ + + + + + + + + + + + diff --git a/svelte/tsconfig.json b/svelte/tsconfig.json index 9a418d5..bdc8057 100644 --- a/svelte/tsconfig.json +++ b/svelte/tsconfig.json @@ -1,6 +1,10 @@ { "compilerOptions": { - "baseUrl": "./", + "lib": [ + "es2015", + "dom" + ], + "baseUrl": "./src", "verbatimModuleSyntax": true, "target": "ES2017", },