Git Product home page Git Product logo

sharerenamer's Introduction

Github All Releases AGPL-3.0 Stand With Ukraine

ShareRenamer

This Nextcloud app allows you to customize your share tokens, so your links can be like https://your-nextcloud.com/s/mysharedlink instead of https://your-nextcloud.com/s/qPv1SwbU5M2YEoJZ. Just share a file or folder normally and customize the link in the sharerenamer tab in the sidebar.

A simple Nextcloud app that lets you customize file/folder share links

Requirements

  • Nextcloud 29

Installation

Nextcloud app store (recommended)

Just install the app from the Nextcloud app store. It can be found under the 'tools' category.

Manual installation

  • Download the latest version from the release page.
  • Extract the archive to your Nextcloud's app folder, e.g. tar xvf sharerenamer-x.x.x.tar.gz -C /path/to/nextcloud/apps
  • Enable the app in the Apps section of your Nextcloud.

Install from git

  • Simply clone the repo to your apps folder and build the frontend:
cd /path/to/nextcloud/apps/
git clone https://github.com/JonathanTreffler/sharerenamer.git
cd sharerenamer/
make composer
make npm-init
make build-js-production
  • Enable the app in the Apps section of your Nextcloud.

Security

  • Share Tokens can currently not be set to the same string as any registered username, so do not use this app if users are not supposed to be able to find out any other registered usernames.
  • Links could be guessed! We discourage using this app on large instances that host sensitive data! We also encourage you to password protect such shared links.

Known Issues:

  • Changes to the link shares only show up in the Sharerenamer Tab after the sidebar has been closed and opened again
  • The copy button of the Shares tab only copies the new link after the sidebar has been closed and opened again

(please don't create issue for these)

Development

Open in Gitpod

It will automatically spin up and configure a full Nextcloud, MariaDB and PhpMyAdmin server.

Nextcloud Login:

Username: dev

Password: t2qQ1C6ktYUv7

PhpMyAdmin Login:

Username: nextcloud

Password: wdGq73jQB0p373gLdf6yLRj5

OCC

docker exec -it -u 33 gitpod_app_1 php occ

(It is fine to have these static logins, because gitpod has acess control built in and no sensitive data is stored in these dev servers)

Creating a new Release

Steps:

  1. Place appstore private key at $HOME/.nextcloud/certificates/sharerenamer.key (/home/gitpod/.nextcloud/certificates/sharerenamer.key for gitpod)
  2. krankerl login --appstore <appstore api key>
  3. Bump app version using krankerl version (major|minor|patch)
  4. Add app update information to CHANGELOG.md
  5. Commit app version bump (git commit -m "Bumped app version to <version>")
  6. Push commit to Github (git push)
  7. krankerl package
  8. krankerl sign --package
  9. Create a new Github release and attach the build/artifacts/sharerenamer.tar.gz file
  10. krankerl publish <github release attached file public url>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.