-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changed webPreferences.webSecurity: false, so fetch() can be used f…
…rom the renderer process. - Added new component: ComponentFunds.vue that will handle listing of fund information from Finansinspektionen webpage. - Added API: fiAPI.js - holds objects for Finansinspektionen inofficial API - Added dependency: unzip - to be able to unpack zip files downloaded from Finansinspektionen - Added dependency: x2js - to be able to convert XML files from the downloaded zip to JSON objects. - Added dependency: localforage - to be able to use IndexedDB with a simple(r) API. - Moved API: ibindexAPI.js up one folder and removed ibindex folder from api folder.
- Loading branch information
1 parent
a354e30
commit c669df0
Showing
17 changed files
with
800 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# Stoqster | ||
|
||
## Application features | ||
|
||
- [x] Sidebar with menu items | ||
- [x] Toolbar with icons | ||
- [x] Tooltip | ||
- [x] Dark/light mode | ||
- [x] In app notifications | ||
- [x] Automatic updates | ||
- [x] Persisted state | ||
|
||
## Display information fetched from www.ibindex.se | ||
Ibindex is a web page presenting information about investment companies in Sweden. | ||
|
||
- [x] Searchable table showing information about investment companies, e.g., net asset value, rebate/premium. | ||
- [x] Expand/hide list of investment companies rows and display additional information, e.g., company holdings, event calendar. | ||
- [x] Dashboard of cards with selected investment companies, showing the calculated rebate/premium, and an expandable list of the historical values. Persisted selection. | ||
- [x] Set/delete alarm on the dashboard: current value crossing 30 days' average. Persisted alarms. | ||
- [x] Searchable table showing market weights of investment companies. | ||
- [x] Display notification when refresh of data is done. | ||
- [x] Display notification when alarm ir triggered. | ||
|
||
## Display information fetched from www.fi.se | ||
|
||
### Latest quarterly fund holdings | ||
Fund managers report their holdings to Finansinspektionen, Sweden's financial supervisory authority, on a quarterly basis and holdings is available for download as a zip archive of XML files at https://www.fi.se/sv/vara-register/fondinnehav-per-kvartal/ | ||
|
||
- [x] Display fund information in a table. Searchable. | ||
- [] Selectable visible columns. | ||
- [] Display fund holdings. | ||
|
||
#### Flowchart | ||
|
||
```mermaid | ||
flowchart LR | ||
%% Definition of the different elements in the flowchart | ||
onMounted(onMounted) | ||
onRefresh(onRefresh) | ||
refresh(refresh data ) | ||
fetch("download \n fetch()") | ||
blob("response.blob() \n get blob \n ") | ||
unzip(unzip) | ||
getxml("entry.text() \n get one xml file \n ") | ||
json("xml2json() \n convert \n one xml file \n to json") | ||
files[(files)] | ||
dB[("dataBase")] | ||
%% The main loop | ||
subgraph main | ||
direction LR | ||
onMounted | ||
onRefresh | ||
refresh | ||
end | ||
%% The fetch flow | ||
subgraph fetchZip | ||
direction TB | ||
fetch --> blob --> unzip --> getxml --> json | ||
end | ||
subgraph IndexedDB | ||
direction TB | ||
files | ||
dB | ||
end | ||
%% How much time is spent in the different blocks | ||
fetch -- "400 ms" .-fetch | ||
blob -- "3 000 ms" .-blob | ||
unzip -- "10 ms" .-unzip | ||
getxml -- "0.2 - 2 ms" .-getxml | ||
json -- "0.2 - 8 ms" .-json | ||
%% Function calls | ||
onMounted --> refresh | ||
onRefresh --> refresh | ||
refresh --> fetchZip | ||
%% Read/write operations | ||
%%blob -. "write" .-> files | ||
%%unzip -. "read" .-> files | ||
%%getxml -. "read" .-> dB | ||
%%json -. "write" .-> dB | ||
``` | ||
|
||
|
||
## Display information fetched from Placera news feed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.