Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Fine-tune GitHub's language detection
docs/**/*.md linguist-detectable=true
docs/**/*.md linguist-documentation=false
.vitepress/config.mts linguist-vendored
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- '"inputs" section is alias node but mapping node is expected'
- '"paths" section must be sequence node but got alias node with "" tag'
- '"paths-ignore" section must be sequence node but got alias node with "" tag'
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
#open-pull-requests-limit: 1

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
#open-pull-requests-limit: 1
34 changes: 10 additions & 24 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ on:
push:
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: "Lint"
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}

steps:
- name: "Checkout"
Expand Down Expand Up @@ -47,33 +43,23 @@ jobs:
# run: |
# npm run lint

- name: "Prettier Check"
- name: "prettier"
if: ${{ !cancelled() }}
run: |
npm run prettier:check

- name: "Yamllint"
- name: "yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
CONFIG: .github/yamllint.yaml
run: |
echo "::group::List Files"
yamllint -d '${{ env.CONFIG }}' --list-files .
yamllint -c "${{ env.CONFIG }}" --list-files .
echo "::endgroup::"
yamllint -d '${{ env.CONFIG }}' .
yamllint -c "${{ env.CONFIG }}" .

- name: "Actionlint"
- name: "actionlint"
if: ${{ !cancelled() }}
run: |
echo "::group::Download"
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
echo "loc: ${loc}"
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
echo "tag: ${tag}"
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
echo "url: ${url}"
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
file "${RUNNER_TEMP}/actionlint"
"${RUNNER_TEMP}/actionlint" --version
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
uses: cssnr/actionlint-action@v1
with:
shellcheck_opts: -e SC2129
15 changes: 7 additions & 8 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Pages"
on:
workflow_dispatch:
push:
branches: [master]
branches: ["master"]
paths:
- ".github/workflows/pages.yaml"
- ".vitepress/**"
Expand All @@ -15,14 +15,13 @@ env:
purge-domain: ""

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: pages
cancel-in-progress: true

jobs:
build:
name: "Build"
if: ${{ !contains(github.event.head_commit.message, '#nodeploy') || github.actor != 'dependabot[bot]' }}

if: ${{ !contains(github.event.head_commit.message, '#nodeploy') }}
uses: cssnr/workflows/.github/workflows/npm-build.yaml@master
permissions:
contents: read
Expand Down Expand Up @@ -53,7 +52,7 @@ jobs:
- name: "Send Deploy Notification"
if: ${{ !cancelled() }}
continue-on-error: true
uses: sarisia/actions-status-discord@v1
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -80,9 +79,9 @@ jobs:
crawler_user_id: ${{ secrets.CRAWLER_USER_ID }}
crawler_api_key: ${{ secrets.CRAWLER_API_KEY }}

- name: "Send Discord Notification"
- name: "Send Post-Deploy Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@v1
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
description: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
7 changes: 7 additions & 0 deletions .github/yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: relaxed

ignore-from-file: .gitignore

rules:
line-length:
max: 119
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.idea/
*.iml
.vscode/
**/dist/
cache/
dist/
build/
node_modules/
.vitepress/cache
.vitepress/contributors.json
contributors.json
6 changes: 2 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.idea/
.vscode/
dist/
node_modules/
.github/disabled
.github/pull_request_template.md
package-lock.json
6 changes: 3 additions & 3 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"printWidth": 120,
"overrides": [
{
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
"options": {
"singleQuote": false
"singleQuote": false,
"printWidth": 120
}
},
{
"files": ["**/*.js", "**/*.css", "**/*.scss"],
"files": ["**/*.js", "**/*.mjs", "**/*.css", "**/*.scss"],
"options": {
"tabWidth": 4
}
Expand Down
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[![GitHub Deployments](https://img.shields.io/github/deployments/django-files/django-files.github.io/github-pages?logo=github&label=deploy)](https://github.com/django-files/django-files.github.io/deployments)
[![GitHub Pages](https://img.shields.io/github/actions/workflow/status/django-files/django-files.github.io/pages.yaml?logo=cachet&label=pages)](https://github.com/django-files/django-files.github.io/actions/workflows/pages.yaml)
[![GitHub Lint](https://img.shields.io/github/actions/workflow/status/django-files/django-files.github.io/lint.yaml?logo=cachet&label=lint)](https://github.com/django-files/django-files.github.io/actions/workflows/lint.yaml)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/django-files/django-files.github.io?logo=vitepress&logoColor=white&label=updated)](https://github.com/django-files/django-files.github.io/pulse)
[![GitHub Contributors](https://img.shields.io/github/contributors-anon/django-files/django-files.github.io?logo=github)](https://github.com/django-files/django-files.github.io/graphs/contributors)
[![GitHub Repo Size](https://img.shields.io/github/repo-size/django-files/django-files.github.io?logo=bookstack&logoColor=white&label=repo%20size)](https://github.com/django-files/django-files.github.io)
[![GitHub Discussions](https://img.shields.io/github/discussions/django-files/django-files?logo=github)](https://github.com/django-files/django-files/discussions)
[![GitHub Repo Stars](https://img.shields.io/github/stars/django-files/django-files?style=flat&logo=github)](https://github.com/django-files/django-files/stargazers)
[![Deployments Pages](https://img.shields.io/github/deployments/django-files/django-files.github.io/github-pages?logo=vitepress&logoColor=white&label=pages)](https://github.com/django-files/django-files.github.io/deployments/github-pages)
[![Deployments Dev](https://img.shields.io/github/deployments/django-files/django-files.github.io/dev?logo=labex&logoColor=white&label=dev)](https://github.com/django-files/django-files.github.io/deployments/dev)
[![Workflow Pages](https://img.shields.io/github/actions/workflow/status/django-files/django-files.github.io/pages.yaml?logo=norton&logoColor=white&label=pages)](https://github.com/django-files/django-files.github.io/actions/workflows/pages.yaml)
[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/django-files/django-files.github.io/lint.yaml?logo=norton&logoColor=white&label=lint)](https://github.com/django-files/django-files.github.io/actions/workflows/lint.yaml)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/django-files/django-files.github.io?logo=listenhub&label=updated)](https://github.com/django-files/django-files.github.io/pulse)
[![GitHub Repo Size](https://img.shields.io/github/repo-size/django-files/django-files.github.io?logo=googlecloudstorage&logoColor=white&label=repo%20size)](https://github.com/django-files/django-files.github.io?tab=readme-ov-file#readme)
[![GitHub Top Language](https://img.shields.io/github/languages/top/django-files/django-files.github.io?logo=devbox)](https://github.com/django-files/django-files.github.io?tab=readme-ov-file#readme)
[![GitHub Contributors](https://img.shields.io/github/contributors-anon/django-files/django-files.github.io?logo=southwestairlines)](https://github.com/django-files/django-files.github.io/graphs/contributors)
[![GitHub Issues](https://img.shields.io/github/issues/django-files/django-files?logo=codeforces&logoColor=white)](https://github.com/django-files/django-files/issues)
[![GitHub Discussions](https://img.shields.io/github/discussions/django-files/django-files?logo=theconversation)](https://github.com/django-files/django-files/discussions)
[![GitHub Forks](https://img.shields.io/github/forks/django-files/django-files?style=flat&logo=forgejo&logoColor=white)](https://github.com/django-files/django-files/forks)
[![GitHub Repo Stars](https://img.shields.io/github/stars/django-files/django-files?style=flat&logo=gleam&logoColor=white)](https://github.com/django-files/django-files/stargazers)
[![GitHub Org Stars](https://img.shields.io/github/stars/django-files?style=flat&logo=github&label=org%20stars)](https://github.com/django-files)
[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord&logoColor=white&label=discord&color=7289da)](https://discord.gg/wXy6m2X8wY)

Expand Down Expand Up @@ -46,3 +50,11 @@ The site should now be available at: http://localhost:5173/

- [VitePress CLI Reference](https://vitepress.dev/reference/cli)
- [VitePress Markdown Reference](https://vitepress.dev/guide/markdown)

<a href="https://django-files.github.io/">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=django-files/django-files%2Cdjango-files/ios-client%2Cdjango-files/android-client%2Cdjango-files/web-extension&type=date&theme=dark&legend=top-left" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=django-files/django-files%2Cdjango-files/ios-client%2Cdjango-files/android-client%2Cdjango-files/web-extension&type=date&legend=top-left" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=django-files/django-files%2Cdjango-files/ios-client%2Cdjango-files/android-client%2Cdjango-files/web-extension&type=date&legend=top-left" />
</picture>
</a>
6 changes: 6 additions & 0 deletions docs/clients/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ href="https://github.com/django-files/android-client"
src="/images/logos/github.png"
/>

::: danger :rotating_light: **Free and Open-Source Android is under threat!**

Google will turn Android into a locked-down platform, restricting your essential freedom to install apps of your choice. Make your voice heard – [Keep Android Open](https://keepandroidopen.org/).

:::

## Install

Get it from GitHub or Obtainium.
Expand Down
11 changes: 11 additions & 0 deletions docs/clients/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,14 @@ base-url="https://raw.githubusercontent.com/django-files/repo-images/refs/heads/
:number-of-slides="6"
:pagination="{ clickable: true }"
/>

&nbsp;

::: tip Upload w/ Native ShareX Client

If you are only uploading images and want to use your locally installed ShareX for processing, ShareX now supports native messaging.

Download [ShareX](https://getsharex.com/) for [Chrome](https://chromewebstore.google.com/detail/sharex/nlkoigbdolhchiicbonbihbphgamnaoc)
or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/sharex/).

:::
8 changes: 8 additions & 0 deletions docs/clients/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ href="https://github.com/django-files/cssnr/zipline-cli"
src="/images/logos/github.png"
/>

::: warning New ShareX CLI Available

A new CLI is available and supports any ShareX server.
For more details visit: <https://cssnr.github.io/sharex-cli/>
Additionally, this is being re-written in GoLang to remove the Python dependency.

:::

## Install

The easiest way to install is with `pip`.
Expand Down
14 changes: 4 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"vitepress": "^1.6.4"
},
"devDependencies": {
"prettier": "^3.7.4"
"prettier": "^3.8.1"
}
}
Loading