Commit f92b5a6c authored by Dustin Eckhardt's avatar Dustin Eckhardt
Browse files

Merge branch 'develop' into 'master'

v1.0.1

See merge request !1
parents 951359c6 f4840bb7
Pipeline #94213989 passed with stages
in 8 minutes and 36 seconds
......@@ -26,7 +26,7 @@ variables:
script:
- npm install
- echo "PUBLIC_URL=$PUBLIC_URL" >> .env
- NODE_ENV=$ENVIRONMENT
- echo "REACT_APP_ENVIRONMENT=$ENVIRONMENT" >> .env
- npm run build
artifacts:
paths:
......
1.0.1 - 07.11.2019
------------------
- Fixed an issue where saving changes to an existing year failed when being connected to Google Drive
- The correct environment name is now used during error reporting and for version logging
1.0.0 - 14.10.2019
------------------
Initial Release
- Serverless single page web application
- A fully responsive and modern design
- Select a mood out of 11 pre-defined combinations, for each day of the year
- Add a tweet sized comment (140 characters) to summarize your day
- Save your diary data on [Dropbox](https://dropbox.com), [OneDrive](https://onedrive.live.com), [Google Drive](https://drive.google.com), or simply in your browsers storage \*
- Optionally, you can enable AES-256-CBC encryption, to protect your privacy and lock your diary
<sup>* Browser storage is limited and may vary between browsers - [more about space usage](https://gitlab.com/eggerd/pixel-diary/wikis#space-usage)</sup>
{
"name": "pixel-diary",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"dependencies": {
"@bugsnag/browser": "^6.4.1",
......
......@@ -6,7 +6,7 @@ import { version } from '../../package.json';
export const bugsnagClient = bugsnag({
apiKey: process.env.REACT_APP_BUGSNAG || 'disabled',
appVersion: version,
releaseStage: process.env.NODE_ENV,
releaseStage: process.env.REACT_APP_ENVIRONMENT || process.env.NODE_ENV,
notifyReleaseStages: ['production', 'testing'],
collectUserIp: false,
autoCaptureSessions: false,
......
......@@ -25,4 +25,4 @@ ReactDOM.render(
);
serviceWorker.register();
console.log(`Version ${version} (${process.env.NODE_ENV})`);
console.log(`Version ${version} (${process.env.REACT_APP_ENVIRONMENT || process.env.NODE_ENV})`);
......@@ -33,16 +33,16 @@ export default abstract class CloudGoogleDrive extends CloudStorage {
static async save(filename: string, value: string): Promise<void> {
if (!this.token) this.init();
const fileId = await this.exists(filename);
const content = new FormData();
content.append('meta', new Blob([JSON.stringify({
name: filename,
parents: ['appDataFolder'],
parents: !fileId ? ['appDataFolder'] : undefined, // omit parents when updating a file
})], { type: 'application/json' }));
content.append('file', new Blob([value], { type: 'text/plain' }));
const fileId = await this.exists(filename);
const response = await fetch(`${this.api.writeUrl}${fileId ? `/${fileId}` : ''}?uploadType=multipart`, {
method: fileId ? 'PUT' : 'POST',
method: fileId ? 'PATCH' : 'POST',
headers: [['Authorization', `Bearer ${this.token}`]],
body: content,
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment