You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 15.2.0.
See below the CHANGELOG.
Changed:
- Various little cleanings ([#28](#28))
Fixed:
- Some failings commands (parameter issues, failures in `sed`) ([#28](#28))
Removed:
- Useless CSV option ([#28](#28))
Signed-off-by: Pierre-Yves Lapersonne <dev@pylapersonne.info>
to make some searches in files with a regular expression as a filter. The _--json_ flag after the regex makes the script produce JSON-based data.
75
75
76
-
Run
76
+
It makes some searches in files with a regular expression as a filter. The _--json_ flag after the regex makes the script produce JSON-based data.
77
+
78
+
### Update corpora
79
+
77
80
```shell
78
81
bash tipsntools.sh --update
79
82
```
80
-
to build HTML and JSON files from your CSV files, and build a global web page and the little web app (to see as a Progressive Web App or Single Page Application if you like buzzwords)
83
+
It builds HTML and JSON files from your CSV files, and build a global web page and the little web app (to see as a Progressive Web App or Single Page Application if you like buzzwords).
81
84
82
85
## Add new elements in spreadsheets and other files
83
86
84
87
You can fill the _.ods_ spreadsheet file with new data you want to save.
85
88
You should keep the columns order.
86
-
Then run
89
+
Then export the spreadsheet tabs in CSV format (UTF8 encoded) in the suitable folders.
90
+
And run the command bellow to update the _.html_ and _.json_ files.
91
+
87
92
```shell
88
93
bash tipsntools.sh --update
89
94
```
90
-
to update the _.html_ and _.json_ files.
91
95
92
96
## Who's who
93
97
@@ -99,14 +103,14 @@ Finally, the CSV files you should export from ODS (preserving UTF8), and the gen
99
103
100
104
## Customize the project
101
105
102
-
In most of case nothing is hard-coded. Feel free to customize the Shell scripts, the HTML assets, etc.
106
+
In most of case nothing is hard-coded, I hope. Feel free to customize the Shell scripts, the HTML assets, etc.
103
107
The thing is, if you want to add a column in one of the spreadsheet's sheets, do not forget to update the dedicated Shell scripts and the HTML elements (CSS style sheets, HTML tables, etc.).
104
108
105
109
## Run the web app
106
110
107
111
The web app here is a kind of "Progressive Web App" as a "Single App Application" (one page, offline, installable, with a cache, responsive, etc), BUT it remains web before all and it's a bit crapy.
108
-
So because web browsers world is fu****g missy (and also coz' I enjoy native apps <3), it remains web browsers which do not support Service Workers, Web Workers, IndexedDB, Promises, ES6 or common and nowadays tools blablabla.
109
-
Thus you should use an up-to-date web browser. And sometimes it still won't work. "Web is universal and cool" they said (U_U))
112
+
So because web browsers world is fu****g missy (and also coz' I enjoy native apps), it remains web browsers which do not support Service Workers, Web Workers, IndexedDB, Promises, ES6 or common and nowadays tools blablabla.
113
+
Thus you should use an up-to-date web browser. And sometimes it still won't work. "Web is universal and cool" they said (U_U)
110
114
Because Service Workers are used, you should reach the web app through HTTPS or a local web server (_localhost_).
111
115
112
116
_If you saw newbie things I did, feel free to submit a pull request!_
@@ -144,7 +148,8 @@ Here is the file tree for this version:
144
148
## Note
145
149
146
150
It seems some web browsers (Firefox 58 for Android and Ubuntu) have bugs with IndexedDB. So you won't use the web app with them.
147
-
You ask why Shell and Ruby are used instead of full cross-platforms languages? Power, effectiveness, and free and open-source OS ;-)
151
+
You ask why Shell and Ruby are used instead of full cross-platforms languages? Power, effectiveness, and free and open-source OS.
152
+
This project was, and in fact still is, a side project without too much ambitions with naive implementations. Feel free to subit pull requests to improve it.
148
153
149
154
## Must-read note
150
155
@@ -156,7 +161,7 @@ If you get errors like _sed: RE error: illegal byte sequence_, please refer to t
156
161
It seems some files (like CSV files) you produce contain special characters '�' making `sed` fail.
You may also have in the wepp app error like _"An error occured with the JSON data gotten from the feed Web API. The degraded mode is still available"_. By looking in the developer console, you may find there is unexpected error in the JSON data returned by the script.
164
+
You may also have in the web app error like _"An error occured with the JSON data gotten from the feed Web API. The degraded mode is still available"_. By looking in the developer console, you may find there is unexpected error in the JSON data returned by the script.
160
165
In this case you should have a look on the CSV files you exported ; maybe there are not well formatted and make the produced JSON bad.
161
166
162
167
In addition, if you install the web app on your computer, you may have different behaviors if you choose Brave, Chrome or Firefox :-/
0 commit comments