Skip to content

Commit 325a431

Browse files
committed
Release 1.0.1: PRs #150, #151, #152 (#153)
1 parent 6bf951b commit 325a431

File tree

10 files changed

+108
-44
lines changed

10 files changed

+108
-44
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This plugin integrates [Swarm](https://www.ethswarm.org/) (a decentralized, bloc
2121

2222
Before using the plugin, ensure you have the following:
2323

24-
- An active Nextcloud instance (version 30 or 31)
24+
- An active Nextcloud instance (version 30, 31 or 32)
2525
- A valid Access Key and URL to activate the service
2626
- [Get Your Free Trial for the Nextcloud Swarm Plugin](https://app.hejbit.com)
2727

@@ -49,14 +49,12 @@ Once installed, HejBit Swarm integrates directly with Nextcloud’s "Files" sect
4949

5050
Additionally, we have introduced a HejBit Feedback button that appears in the bottom left corner when you are inside a HejBit folder. This feature allows users to easily send feedback regarding general inquiries, ideas, or issues directly from the plugin.
5151

52-
5352
### Settings
5453

5554
Users with administrative credentials can configure the plugin through the standard External Storage settings. Here, you can input your Access Key and URL for HejBit Swarm.
5655

5756
![Basic HejBit Swarm setup in External Storage in Nextcloud administration](https://github.com/user-attachments/assets/3e80f664-86b9-4cfa-bbc5-6f9f1fbeb94a)
5857

59-
6058
### Usage
6159

6260
Once setup and configured, the Decentralized Storage is ready to use.

appinfo/info.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This plugin integrates [Swarm](https://www.ethswarm.org/) (a decentralized, bloc
2626
2727
Before using the plugin, ensure you have the following:
2828
29-
- An active Nextcloud instance (version 30 or 31)
29+
- An active Nextcloud instance (version 30, 31 or 32)
3030
- A valid Access Key and URL to activate the service
3131
- [Get Your Free Trial for the Nextcloud Swarm Plugin](https://app.hejbit.com)
3232
@@ -89,7 +89,7 @@ Experience the future of data storage with 5GB of free, decentralized storage on
8989
This program is licensed under the AGPLv3 or later.
9090
9191
]]></description>
92-
<version>1.0.0</version>
92+
<version>1.0.1</version>
9393
<licence>agpl</licence>
9494
<author>MetaProvide</author>
9595
<namespace>Files_External_Ethswarm</namespace>
@@ -104,7 +104,7 @@ This program is licensed under the AGPLv3 or later.
104104
<repository type="git">https://github.com/MetaProvide/nextcloud-swarm-plugin.git</repository>
105105
<screenshot>https://raw.githubusercontent.com/MetaProvide/nextcloud-swarm-plugin/main/assets/images/swarm_Files.png</screenshot>
106106
<dependencies>
107-
<nextcloud min-version="30" max-version="31"/>
107+
<nextcloud min-version="30" max-version="32"/>
108108
</dependencies>
109109
<settings>
110110
<admin>OCA\Files_External_Ethswarm\Settings\Admin</admin>

cli/staging/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ log_gap
119119

120120
DEPLOYMENT=()
121121
TIMESTAMP=$(date +%s)
122-
for version in {29..31}; do
122+
for version in {30..32}; do
123123
deploy "$version" &
124124
DEPLOYMENT+=($!)
125125
done

css/app.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,26 @@
77
pointer-events: none;
88
}
99

10+
.hejbit-overlay-32 {
11+
position: absolute;
12+
top: 23px;
13+
left: 60px;
14+
width: 16px;
15+
height: 16px;
16+
pointer-events: none;
17+
}
18+
1019
.hejbit-overlay svg {
1120
width: 16px;
1221
height: 16px;
1322
}
1423

24+
.hejbit-overlay-32 svg {
25+
width: 16px;
26+
height: 16px;
27+
}
28+
29+
1530
.hejbit-archive svg {
1631
filter: grayscale(100%);
1732
border: 1px dashed #f6c915;

docker-compose.stage.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ services:
88
depends_on:
99
nextcloud:
1010
condition: service_started
11-
proxy:
12-
condition: service_healthy
1311
labels:
1412
caddy: ${APP_URL}
1513
caddy.reverse_proxy: '{{upstreams 80}}'
@@ -22,7 +20,7 @@ services:
2220
context: ./docker/nextcloud
2321
dockerfile: Dockerfile
2422
args:
25-
NC_VERSION: ${NC_VERSION:-31}
23+
NC_VERSION: ${NC_VERSION:-32}
2624
target: ${ENV:-development}
2725
restart: unless-stopped
2826
depends_on:
@@ -45,7 +43,7 @@ services:
4543
- ./:/var/www/html/custom_apps/files_external_ethswarm
4644

4745
cron:
48-
image: nextcloud:${NC_VERSION:-31}-fpm-alpine
46+
image: nextcloud:${NC_VERSION:-32}-fpm-alpine
4947
restart: always
5048
volumes:
5149
- nc-app:/var/www/html
@@ -75,7 +73,7 @@ services:
7573
- backend
7674

7775
postgres:
78-
image: postgres:alpine
76+
image: postgres:18-alpine
7977
restart: unless-stopped
8078
env_file:
8179
- .env
@@ -97,13 +95,13 @@ networks:
9795
frontend:
9896
ipam:
9997
config:
100-
- subnet: 172.${NC_VERSION:-31}.10.0/24
101-
gateway: 172.${NC_VERSION:-31}.10.1
98+
- subnet: 172.${NC_VERSION:-32}.10.0/24
99+
gateway: 172.${NC_VERSION:-32}.10.1
102100
backend:
103101
ipam:
104102
config:
105-
- subnet: 172.${NC_VERSION:-31}.20.0/24
106-
gateway: 172.${NC_VERSION:-31}.20.1
103+
- subnet: 172.${NC_VERSION:-32}.20.0/24
104+
gateway: 172.${NC_VERSION:-32}.20.1
107105
proxy:
108106
name: hejbit-network
109107
external: true

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
context: ./docker/nextcloud
3131
dockerfile: Dockerfile
3232
args:
33-
NC_VERSION: ${NC_VERSION:-31}
33+
NC_VERSION: ${NC_VERSION:-32}
3434
target: ${ENV:-development}
3535
restart: unless-stopped
3636
depends_on:
@@ -57,7 +57,7 @@ services:
5757
- ./:/var/www/html/custom_apps/files_external_ethswarm
5858

5959
cron:
60-
image: nextcloud:${NC_VERSION:-31}-fpm-alpine
60+
image: nextcloud:${NC_VERSION:-32}-fpm-alpine
6161
restart: always
6262
volumes:
6363
- nc-app:/var/www/html
@@ -89,7 +89,7 @@ services:
8989
- backend
9090

9191
postgres:
92-
image: postgres:alpine
92+
image: postgres:18-alpine
9393
restart: unless-stopped
9494
# ports:
9595
# - '5432:5432'

img/hejbit-logo-padded.svg

Lines changed: 31 additions & 0 deletions
Loading

lib/AppInfo/Telemetry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function configureTelemetry(): void {
4545
if ($config->getSystemValue('telemetry.enabled') && $isSupported) {
4646
/** @var IAppManager $appManager */
4747
$appManager = $this->container->get(IAppManager::class);
48-
$appInfo = $appManager->getAppInfo(parent::NAME);
48+
$appInfo = $appManager->getAppInfo(Application::NAME);
4949
$pluginVersion = $appInfo['version'] ?? 'unknown';
5050

5151
/** @var IURLGenerator $urlGenerator */

src/app/files/actions/overlay.js

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { FileAction, registerFileAction } from "@nextcloud/files";
22
import { showInfo } from "@nextcloud/dialogs";
33
import HejBitSvg from "@/../img/hejbit-logo.svg";
4+
import HejBitPaddedSvg from "@/../img/hejbit-logo-padded.svg";
45
import InfoSvg from "@material-design-icons/svg/filled/info.svg";
56
import FilesHelper from "@/util/FilesHelper";
67
import SvgHelper from "@/util/SvgHelper";
8+
import { loadState } from '@nextcloud/initial-state';
9+
10+
711

812
registerFileAction(
913
new FileAction({
@@ -29,24 +33,39 @@ registerFileAction(
2933
},
3034

3135
iconSvgInline(files, view) {
32-
return SvgHelper.convert(
33-
FilesHelper.isArchiveFolder(files) ? InfoSvg : HejBitSvg
34-
);
36+
const config = loadState('core', 'config');
37+
const majorVersion = config?.version ? parseInt(config.version.split('.')[0]) : null;
38+
if (majorVersion === 32){
39+
return SvgHelper.convert(FilesHelper.isArchiveFolder(files) ? InfoSvg : HejBitPaddedSvg);
40+
}else{
41+
return SvgHelper.convert(FilesHelper.isArchiveFolder(files) ? InfoSvg : HejBitSvg);
42+
}
43+
3544
},
3645

3746
inline(file, view) {
3847
return true;
3948
},
4049

4150
async renderInline(node, view) {
51+
52+
const config = loadState('core', 'config');
53+
const majorVersion = config?.version ? parseInt(config.version.split('.')[0]) : null;
54+
4255
// Create the overlay element
4356
const overlay = document.createElement("div");
44-
overlay.classList.add("hejbit-overlay");
57+
58+
if (majorVersion === 32) {
59+
overlay.classList.add("hejbit-overlay-32");
60+
} else {
61+
overlay.classList.add("hejbit-overlay");
62+
}
4563

4664
if (FilesHelper.isArchive(node)) {
4765
overlay.classList.add("hejbit-archive");
4866
}
4967

68+
5069
overlay.innerHTML = SvgHelper.convert(HejBitSvg);
5170

5271
return overlay;

vendor-bin/sentry/composer.lock

Lines changed: 23 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)