Coder Social home page Coder Social logo

silopolis / files_scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raudius/files_scripts

0.0 0.0 0.0 2.1 MB

Custom file actions app for Nextcloud

License: GNU Affero General Public License v3.0

JavaScript 28.49% PHP 54.01% TypeScript 3.56% CSS 0.09% Hack 0.01% Makefile 1.12% Vue 12.71%

files_scripts's Introduction

The File Actions app is a scripting tool, which administrators can employ to automate workflows, and to give users of the Nextcloud instance additional custom file actions. The actions are accessible straight from the Files app!

๐ŸŒ• Scripting in Lua, its simple and has plenty of online resources.
โšก Make hard tasks easy, straight from the Files app.
๐Ÿ™‹ Are you missing a function in the scripting API? Open an issue on Github!
๐Ÿค– Integration with Nextcloud Flow allows you to fully automate workflows

Screenshot of Files Scripts Version 1.0.0

Installation & Configuration

Required:

  • Nextcloud >=23
  • PHP >=7.4

Recommended:

The app includes a Lua interpreter which runs on PHP, this interpreter is still under development and its use is not recommended. For a faster and more reliable solution install the Lua PHP extension.

  • Lua + PHP Lua plugin
sudo apt-get install lua5.3
sudo apt-get install liblua5.3-0
sudo apt-get install liblua5.3-dev
Lua plugin for PHP 7
sudo apt-get install php-pear
sudo apt-get install php7-dev

sudo cp /usr/include/lua5.3/lua.h /usr/include
sudo ln -s /usr/include/lua5.3/ /usr/include/lua
sudo cp /usr/lib/x86_64-linux-gnu/liblua5.3.a /usr/lib/liblua.a
sudo cp /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/lib/liblua.so

sudo pecl install lua-2.0.7
Lua plugin for PHP 8 Since the Lua plugin is not yet officially supported for PHP8, we need to build it.
sudo apt-get install php-pear
sudo apt-get install php-dev

cd ~
git clone https://github.com/singlecomm/php-lua.git
cd php-lua
git checkout php8
phpize && ./configure --with-lua-version=5.3
make

# The destination path may change depending on your PHP version
# You can find your extension directory by using:
# php -i | grep extension_dir
sudo cp ./.libs/lua.so /usr/lib/php/20200930/

Don't forget to append extension=lua.so to your php.ini!

Optional:

Some functions require additional packages to be installed on the server
sudo apt-get install qpdf
sudo apt install ffmpeg

Documentation

The Admin documentation contains information about how to create new actions and some precautions that should be taken when writing one.

The Scripting API documentation contains descriptions for all the API functions as well as some snippets of how they can be used.

Contributing

Contributions to the app are most welcome!

  • ๐ŸŒ Translations
    The app can be translated through the Nextcloud community in Transifex
  • ๐Ÿ›  Scripting API
    If there is something you need that is currently not possible (or complex) to do with scripting API, please open a GitHub issue, or even better, a pull request!
  • ๐Ÿ“ƒ Documentation
    The project is still relatively new, and the documentation can still use some work. If you have any suggestions or improvements please do help out!
  • ๐Ÿ’ธ Donations
    Last and least, you can donate your hard-earned cash with Liberapay

files_scripts's People

Contributors

0xfaul avatar denisbessa avatar nextcloud-bot avatar rakekniven avatar raudius avatar valdnet avatar vitstradal avatar

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.