Skip to content
Open
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
1,139 changes: 653 additions & 486 deletions StorageAddon/README.md

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions StorageAddon/images/architecture.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
flowchart LR
subgraph PLUGIN["nextcloud_plugin(単一の Python パッケージ)"]
direction TB
A["addon<br/>(osf.io アドオン)"]
I["addon_imp<br/>(GravyValet Addon Imp)"]
P["provider<br/>(WaterButler Provider)"]
end
FE["angular-osf<br/>(フロントエンド)"] --> OSF[("osf.io")]
FE --> GV[("GravyValet")]
FE --> WB[("WaterButler")]
A -. "pip install" .-> OSF
I -. "poetry install" .-> GV
P -. "poetry install" .-> WB
Binary file added StorageAddon/images/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed StorageAddon/images/crud.png
Binary file not shown.
23 changes: 0 additions & 23 deletions StorageAddon/images/crud.uml

This file was deleted.

14 changes: 14 additions & 0 deletions StorageAddon/images/delegation.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sequenceDiagram
participant FE as angular-osf
participant OSF as osf.io
participant GV as GravyValet
participant WB as WaterButler
participant NC as NextCloud
FE->>OSF: ファイル操作要求(provider = nextcloud)
OSF->>GV: 認証情報・設定を要求(wb_key = nextcloud)
Note over GV: Addon Imp の build_wb_config() が settings を生成し、<br/>認証アカウントから credentials を取得
GV-->>OSF: credentials + settings
OSF->>WB: make_provider(credentials, settings)
WB->>NC: WebDAV でアクセス(CRUD)
NC-->>WB: 応答
WB-->>FE: 応答
Binary file added StorageAddon/images/delegation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions StorageAddon/images/naming.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
flowchart TB
KEY(["識別名 canonical key = nextcloud"])
KEY --> SN["osf.io アドオン<br/>short_name = nextcloud"]
KEY --> PV["osf.io アドオン<br/>_provider = nextcloud"]
KEY --> WK["GravyValet<br/>wb_key = nextcloud"]
KEY --> AI["GravyValet<br/>addon_imp_name = NEXTCLOUD<br/>.lower() = nextcloud"]
KEY --> EP["WaterButler<br/>エントリポイント名 = nextcloud"]
KEY --> LB["osf.io アドオン<br/>label / app_label = addons_nextcloud"]
Binary file added StorageAddon/images/naming.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed StorageAddon/images/osf_class.png
Binary file not shown.
96 changes: 0 additions & 96 deletions StorageAddon/images/osf_class.uml

This file was deleted.

7 changes: 7 additions & 0 deletions StorageAddon/images/proxy-routing.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
flowchart LR
B["ブラウザ<br/>http://localhost"] --> C{{"Caddy<br/>単一オリジン<br/>リバースプロキシ"}}
C -->|"/v2, /_/"| API[("osf.io API<br/>:8000")]
C -->|"/v1/resources/*"| WB[("WaterButler<br/>:7777")]
C -->|"/v1, /static/*/icons"| GV[("GravyValet<br/>:8004")]
C -->|"/login /logout /oauth /api/v1 /download"| CAS[("osf.io web/CAS<br/>:5000")]
C -->|"上記以外すべて"| NG[("angular-osf<br/>:4200")]
Binary file added StorageAddon/images/proxy-routing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed StorageAddon/images/wb_class.png
Binary file not shown.
45 changes: 0 additions & 45 deletions StorageAddon/images/wb_class.uml

This file was deleted.

4 changes: 0 additions & 4 deletions StorageAddon/osf.io/addon/__init__.py

This file was deleted.

70 changes: 0 additions & 70 deletions StorageAddon/osf.io/addon/apps.py

This file was deleted.

Empty file.
Loading