Skip to content

Latest commit

 

History

History
51 lines (46 loc) · 1.02 KB

README.md

File metadata and controls

51 lines (46 loc) · 1.02 KB

PS-Sync

sync PokemonShowdown's team with your webdav

---
title: Sync (manual click)
---
flowchart LR
    local1[Teams on PS]
    remote1[WebDav: /team.txt]
    local1 -- Backup Button --> remote1
    remote1 -- Restore Button --> local1
Loading
---
title: Archive (manual click)
---
flowchart LR
    local1[One Team on PS]
    remote1[WebDav: /arch.txt]
    local1 -- Archive Button --> remote1
    remote1 -- Unarchive Button --> local1
Loading

Code Structure

1. Sync part

%%{init: { "sequence": { "mirrorActors":false }}}%%
sequenceDiagram
    Extension->>PS: {command: load team} 
    PS-->>Extension: data: teams info!
    destroy PS
    create participant WebDav
    Extension->>WebDav: Save the data
Loading

2. Arch part

Similar to the sync part

Built With

npm run build:web
 output: {
    environment: { module: false },
    library: { type: "window", name: 'WebDAV' }
}