mirror of
https://github.com/JonasunderscoreJones/docs.jonasjones.dev.git
synced 2025-10-24 11:39:17 +02:00
Compare commits
10 commits
0a9689d5e3
...
d0dfda22a2
| Author | SHA1 | Date | |
|---|---|---|---|
| d0dfda22a2 | |||
| a468e21e64 | |||
| 7c4325a0df | |||
| 026792d5fb | |||
| 5feffd57de | |||
| f555d094b7 | |||
| 3a9982c2ac | |||
| 6b60da7060 | |||
| 7b4bdd820a | |||
| f922802b08 |
5 changed files with 55 additions and 1 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -44,4 +44,7 @@ website/i18n/**/*
|
|||
#!website/i18n/fr
|
||||
#!website/i18n/fr/**/*
|
||||
|
||||
.netlify
|
||||
.netlify
|
||||
|
||||
.env
|
||||
.env
|
||||
|
|
|
|||
28
docs/fileshare.mdx
Normal file
28
docs/fileshare.mdx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
sidebar_position: 8
|
||||
slug: /fileshare.jonasjones.dev/
|
||||
---
|
||||
|
||||
# Fileshare Service
|
||||
|
||||
A simple cloudflare worker to upload and download files. This service is available at [fileshare.jonasjones.dev](https://fileshare.jonasjones.dev). The source code is available on [Github](https://github.com/JonasunderscoreJones/fileshare.jonasjones.dev).
|
||||
|
||||
## Dashboard usage
|
||||
|
||||
The dashboard allows for easy file upload, download and deletion. To upload and delete, a password is required. It is set with a cloudflare wrangler secret.
|
||||
|
||||
### Upload
|
||||
|
||||
Uploading is done by selecting a file by clicking on the `Browse` button, then selecting the checkbox for 7 day expiry or selecting a custom expiry date. After entering the password, the file can be uploaded.
|
||||
|
||||
### Download
|
||||
|
||||
Dowloading is as simple as clicking on the file ID in the list of files or clicking on a direct link you might have received.
|
||||
|
||||
### Delete
|
||||
|
||||
Deleting a file can be done by using the dropdown to select a file and entering the password. After clicking the `delete` button, the file will be removed from the server.
|
||||
|
||||
## API usage
|
||||
|
||||
|
||||
|
|
@ -54,6 +54,27 @@ const config = {
|
|||
themeConfig:
|
||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||
({
|
||||
algolia: {
|
||||
// The application ID provided by Algolia
|
||||
appId: '59JHI8GRGH',
|
||||
|
||||
// Public API key: it is safe to commit it
|
||||
apiKey: '87a26fafb2fb30c39503a44b80fad4cf',
|
||||
|
||||
indexName: 'jonasjones',
|
||||
|
||||
// Optional: see doc section below
|
||||
contextualSearch: true,
|
||||
|
||||
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
|
||||
//externalUrlRegex: 'external\\.com|domain\\.com',
|
||||
|
||||
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
|
||||
//replaceSearchResultPathname: {
|
||||
// from: '/docs/', // or as RegExp: /\/docs\//
|
||||
// to: '/',
|
||||
//},
|
||||
},
|
||||
prism: {
|
||||
additionalLanguages: ['properties', 'ini', 'powershell', 'bash', 'yaml'],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -14,9 +14,11 @@
|
|||
"write-heading-ids": "docusaurus write-heading-ids"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/js": "^3.8.2",
|
||||
"@docusaurus/core": "3.5.2",
|
||||
"@docusaurus/preset-classic": "3.5.2",
|
||||
"@mdx-js/react": "^3.0.0",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
"clsx": "^2.0.0",
|
||||
"prism-react-renderer": "^2.3.0",
|
||||
"react": "^18.0.0",
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 46 KiB |
Loading…
Add table
Add a link
Reference in a new issue