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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
.idea
.vscode
.phpactor*

/vendor/
/vendor-bin/**/vendor/

/js/
node_modules/

/.php-cs-fixer.cache
2 changes: 2 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@
->notPath('src')
->notPath('vendor')
->notPath('vendor-bin')
->notPath('build')
->notPath('node_modules')
->in(__DIR__);
return $config;
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
- SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.3.6

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ This app does only support local external storage backend

## Supported

* Zip
* Rar
* Tar
* Gzip
* 7z
* Deb
* Bzip2
- Zip
- Rar
- Tar
- Gzip
- 7z
- Deb
- Bzip2

## Requirements

* Rar PHP extension
- Rar PHP extension
```bash
pecl -v install rar ## or ## sudo apt-get install unrar
```

* p7zip and p7zip-full
- p7zip and p7zip-full

## Steps to install p7zip on Linux » Ubuntu and Fedora or CentOS / RHEL

Expand Down Expand Up @@ -78,9 +78,9 @@ sudo rpm -U --quiet p7zip-plugins-16.02-10.el6.x86_64.rpm

## TODO

* Add password support
* Add viewer for archives
* Support nextcloud's encryption module
- Add password support
- Add viewer for archives
- Support nextcloud's encryption module

## Preview

Expand Down
47 changes: 26 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
{
"name": "extract/extract",
"name": "librecode/extract",
"description": "Allows to extract archive from the web interface",
"type": "project",
"license": "AGPL",
"license": "AGPL-3.0-or-later",
"authors": [
{
"name": "Paul Lereverend"
},
{
"name": "LibreCode Coop"
}
],
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"sort-packages": true,
"platform": {
"php": "8.1"
},
"allow-plugins": {
"bamarni/composer-bin-plugin": true
"autoload": {
"psr-4": {
"OCA\\Extract\\": "lib/"
}
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"nextcloud/ocp": "dev-master"
},
"scripts": {
"bin": "echo 'bin not installed'",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l",
Expand All @@ -39,6 +31,24 @@
"composer dump-autoload"
]
},
"require": {
"bamarni/composer-bin-plugin": "^1.8",
"php": "^8.1"
},
"require-dev": {
"nextcloud/ocp": "dev-master"
},
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"sort-packages": true,
"platform": {
"php": "8.1"
},
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
Expand All @@ -49,10 +59,5 @@
"psr-4": {
"OCP\\": "vendor/nextcloud/ocp/OCP/"
}
},
"autoload": {
"psr-4": {
"OCA\\Extract\\": "lib/"
}
}
}
21 changes: 12 additions & 9 deletions composer.lock

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

9 changes: 0 additions & 9 deletions css/style.css

This file was deleted.

13 changes: 5 additions & 8 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@ final class Application extends App implements IBootstrap {

public const APP_ID = 'extract';

public function __construct(array $urlParams = []) {
parent::__construct(self::APP_ID, $urlParams);
public function __construct() {
parent::__construct(self::APP_ID);
}

// Called later than "register".
#[\Override]
public function boot(IBootContext $context): void {
public function register(IRegistrationContext $context): void {
$context->registerEventListener(LoadAdditionalScriptsEvent::class, LoadExtractActions::class);
}

// Called earlier than boot, so anything initialized in the
// "boot()" method must not be used here.
#[\Override]
public function register(IRegistrationContext $context): void {
$context->registerEventListener(LoadAdditionalScriptsEvent::class, LoadExtractActions::class);
public function boot(IBootContext $context): void {
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"dev": "vite build --mode development",
"lint": "eslint",
"lint:fix": "eslint --fix",
"stylelint": "stylelint css/*.css css/*.scss src/**/*.scss",
"stylelint:fix": "stylelint css/*.css css/*.scss src/**/*.scss --fix",
"stylelint": "stylelint src/**/*.scss src/**/*.css --allow-empty-input",
"stylelint:fix": "src/**/*.scss src/**/*.css --fix",
"typescript:check": "tsc --noEmit",
"typescript:generate": "npx openapi-typescript ./openapi.json -t -o src/types/openapi/openapi.ts",
"watch": "vite build --mode development --watch"
Expand Down
28 changes: 14 additions & 14 deletions vendor-bin/coding-standard/composer.lock

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