Skip to content

Commit 2b96855

Browse files
committed
🎨 Set indentation with tabs.
1 parent 4ca5879 commit 2b96855

22 files changed

Lines changed: 1061 additions & 1061 deletions

.eslintrc.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module.exports = {
2-
root: true,
3-
env: {
4-
node: true,
5-
},
6-
'extends': [
7-
'plugin:vue/essential',
8-
'eslint:recommended',
9-
],
10-
rules: {
11-
'no-console': 'off',
12-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13-
}
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'eslint:recommended',
9+
],
10+
rules: {
11+
'no-console': 'off',
12+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13+
}
1414
};

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Thomas Ramirez
3+
Copyright (c) 2020 Thomas Ramirez alias Jimskapt
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

doc-sources/help-en-US.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ All you need is a *modern* browser that allows to use the last technologies that
77
- IndexedDB (or WebSQL)
88

99
<p class="v-alert v-sheet v-alert--border v-alert--border-left indigo my-3">
10-
<i aria-hidden="true" class="v-icon material-icons theme--dark v-alert__icon">info</i>
11-
<span>If you are not accepting cookies, this application cannot save the data on your browser, so it can not works.</span>
10+
<i aria-hidden="true" class="v-icon material-icons theme--dark v-alert__icon">info</i>
11+
<span>If you are not accepting cookies, this application cannot save the data on your browser, so it can not works.</span>
1212
</p>
1313

1414
## Where are the data ?
@@ -17,8 +17,8 @@ By default, the data(base) is **only stored on your device**
1717
(precisely, inside your web browser thanks to [IndexedDB](https://en.wikipedia.org/wiki/Indexed_Database_API) technology).
1818

1919
<p class="v-alert v-sheet v-alert--border v-alert--border-left orange my-3">
20-
<i aria-hidden="true" class="v-icon material-icons theme--dark v-alert__icon">priority_high</i>
21-
<span>If you are cleaning you browser (like cookies), there are significant risks that your local database will be erased !</span>
20+
<i aria-hidden="true" class="v-icon material-icons theme--dark v-alert__icon">priority_high</i>
21+
<span>If you are cleaning you browser (like cookies), there are significant risks that your local database will be erased !</span>
2222
</p>
2323

2424
Fortunatly, Lambda Badger allow you to save your data through several ways.

doc-sources/help-fr-FR.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Tout ce que vous avez besoin d'un navigateur *moderne* qui vous permet d'utilise
77
- IndexedDB (ou WebSQL)
88

99
<p class="v-alert v-sheet v-alert--border v-alert--border-left indigo my-3">
10-
<i aria-hidden="true" class="v-icon material-icons theme--dark v-alert__icon">info</i>
11-
<span>Si vous refusez les cookies, cette application ne pourra pas enregistrer les données dans votre navigateur, donc elle ne fonctionnera pas.</span>
10+
<i aria-hidden="true" class="v-icon material-icons theme--dark v-alert__icon">info</i>
11+
<span>Si vous refusez les cookies, cette application ne pourra pas enregistrer les données dans votre navigateur, donc elle ne fonctionnera pas.</span>
1212
</p>
1313

1414
## Où sont les données ?
@@ -17,8 +17,8 @@ Par défaut, la base de données est **stockée unique sur votre périphérique*
1717
(plus précisément, dans votre navigateur web grâce à la technologie [IndexedDB](https://fr.wikipedia.org/wiki/Indexed_Database_API)).
1818

1919
<p class="v-alert v-sheet v-alert--border v-alert--border-left orange my-3">
20-
<i aria-hidden="true" class="v-icon material-icons theme--dark v-alert__icon">priority_high</i>
21-
<span>Si vous nettoyez votre navigateur (comme les cookies), il y a de gros riques que votre base de données locale soit effacée !</span>
20+
<i aria-hidden="true" class="v-icon material-icons theme--dark v-alert__icon">priority_high</i>
21+
<span>Si vous nettoyez votre navigateur (comme les cookies), il y a de gros riques que votre base de données locale soit effacée !</span>
2222
</p>
2323

2424
Heureusement, Lambda Badger vous permet de sauvegarder vos données de plusieures façons.

public/index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8-
<title><%= htmlWebpackPlugin.options.title %></title>
9-
<script src="<%= BASE_URL %>settings.js"></script>
10-
</head>
11-
<body>
12-
<noscript>
13-
<strong>We're sorry but Lambda Badger doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
14-
</noscript>
15-
<div id="app"><p>The application should be displayed in a couple of seconds, please wait ...</p></div>
16-
<!-- built files will be auto injected -->
17-
</body>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title><%= htmlWebpackPlugin.options.title %></title>
9+
<script src="<%= BASE_URL %>settings.js"></script>
10+
</head>
11+
<body>
12+
<noscript>
13+
<strong>We're sorry but Lambda Badger doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
14+
</noscript>
15+
<div id="app"><p>The application should be displayed in a couple of seconds, please wait ...</p></div>
16+
<!-- built files will be auto injected -->
17+
</body>
1818
</html>

public/manifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "Lambda Badger",
3-
"short_name": "Lambda Badger",
4-
"start_url": "index.html",
5-
"display": "standalone",
6-
"background_color":"#1E1E1E",
7-
"theme_color":"#1E1E1E"
2+
"name": "Lambda Badger",
3+
"short_name": "Lambda Badger",
4+
"start_url": "index.html",
5+
"display": "standalone",
6+
"background_color":"#1E1E1E",
7+
"theme_color":"#1E1E1E"
88
}

src/App.vue

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
<template lang="pug">
22
v-app
3-
v-navigation-drawer(persistent, v-model="drawer", fixed, app)
4-
v-app-bar
5-
v-toolbar-title {{ appName }}
6-
v-spacer
7-
span(class="caption") {{ appVersion }}
8-
v-list
9-
v-list-item(:to="{name: 'notes'}")
10-
v-list-item-action
11-
v-icon event_note
12-
v-list-item-content
13-
v-list-item-title {{ $t('Notes') }}
14-
v-list-item(:to="{name: 'settings'}")
15-
v-list-item-action
16-
v-icon settings
17-
v-list-item-content
18-
v-list-item-title {{ $t('Settings') }}
19-
v-list-item(:to="{name: 'help'}")
20-
v-list-item-action
21-
v-icon help
22-
v-list-item-content
23-
v-list-item-title {{ $t('Help') }}
24-
v-divider
25-
v-list-item(:href="appWebsite", target="_blank", v-if="appWebsite !== '<package.json:website>'")
26-
v-list-item-action
27-
v-icon bookmarks
28-
v-list-item-content
29-
v-list-item-title {{ $t('Website') }}
30-
v-list-item(v-else)
31-
v-list-item-content package.json:website
32-
v-app-bar(app)
33-
v-app-bar-nav-icon(@click.stop="drawer = !drawer")
34-
v-toolbar-title {{ appName }}
35-
v-spacer
36-
v-btn(icon, :color="($store.state.settings.currentSync !== null) ? 'success' : 'error'", :to="{name: 'settings'}")
37-
v-icon storage
38-
v-main
39-
v-container
40-
router-view
3+
v-navigation-drawer(persistent, v-model="drawer", fixed, app)
4+
v-app-bar
5+
v-toolbar-title {{ appName }}
6+
v-spacer
7+
span(class="caption") {{ appVersion }}
8+
v-list
9+
v-list-item(:to="{name: 'notes'}")
10+
v-list-item-action
11+
v-icon event_note
12+
v-list-item-content
13+
v-list-item-title {{ $t('Notes') }}
14+
v-list-item(:to="{name: 'settings'}")
15+
v-list-item-action
16+
v-icon settings
17+
v-list-item-content
18+
v-list-item-title {{ $t('Settings') }}
19+
v-list-item(:to="{name: 'help'}")
20+
v-list-item-action
21+
v-icon help
22+
v-list-item-content
23+
v-list-item-title {{ $t('Help') }}
24+
v-divider
25+
v-list-item(:href="appWebsite", target="_blank", v-if="appWebsite !== '<package.json:website>'")
26+
v-list-item-action
27+
v-icon bookmarks
28+
v-list-item-content
29+
v-list-item-title {{ $t('Website') }}
30+
v-list-item(v-else)
31+
v-list-item-content package.json:website
32+
v-app-bar(app)
33+
v-app-bar-nav-icon(@click.stop="drawer = !drawer")
34+
v-toolbar-title {{ appName }}
35+
v-spacer
36+
v-btn(icon, :color="($store.state.settings.currentSync !== null) ? 'success' : 'error'", :to="{name: 'settings'}")
37+
v-icon storage
38+
v-main
39+
v-container
40+
router-view
4141
</template>
4242

4343
<script>
4444
import pkgInfo from '../package.json';
4545
4646
export default {
47-
name: 'App',
48-
data() {
49-
return {
50-
drawer: false,
51-
appVersion: pkgInfo.version || '<package.json:version>',
52-
appName: pkgInfo.displayName || '<package.json:displayName>',
53-
appWebsite: pkgInfo.website || '<package.json:website>',
54-
};
55-
},
56-
created() {
57-
const that = this;
47+
name: 'App',
48+
data() {
49+
return {
50+
drawer: false,
51+
appVersion: pkgInfo.version || '<package.json:version>',
52+
appName: pkgInfo.displayName || '<package.json:displayName>',
53+
appWebsite: pkgInfo.website || '<package.json:website>',
54+
};
55+
},
56+
created() {
57+
const that = this;
5858
59-
that.$vuetify.theme.dark = that.$store.state.settings.darkMode || false;
59+
that.$vuetify.theme.dark = that.$store.state.settings.darkMode || false;
6060
61-
this.$store.watch(
62-
function() { return that.$store.state.settings.darkMode; },
63-
function(value) { that.$vuetify.theme.dark = value; },
64-
);
65-
}
61+
this.$store.watch(
62+
function() { return that.$store.state.settings.darkMode; },
63+
function(value) { that.$vuetify.theme.dark = value; },
64+
);
65+
}
6666
}
6767
</script>

src/background.js

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { createProtocol, installVueDevtools } from 'vue-cli-plugin-electron-buil
77

88
const isDevelopment = process.env.NODE_ENV !== 'production';
99
if (isDevelopment) {
10-
// Don't load any native (external) modules until the following line is run:
11-
require('module').globalPaths.push(process.env.NODE_MODULES_PATH);
10+
// Don't load any native (external) modules until the following line is run:
11+
require('module').globalPaths.push(process.env.NODE_MODULES_PATH);
1212
}
1313

1414
// global reference to mainWindow (necessary to prevent window from being garbage collected)
@@ -17,60 +17,60 @@ let mainWindow;
1717
// Standard scheme must be registered before the app is ready
1818
protocol.registerStandardSchemes(['app'], { secure: true });
1919
function createMainWindow () {
20-
const window = new BrowserWindow();
20+
const window = new BrowserWindow();
2121

22-
if (isDevelopment) {
23-
// Load the url of the dev server if in development mode
24-
window.loadURL(process.env.WEBPACK_DEV_SERVER_URL);
25-
if (!process.env.IS_TEST) {
26-
window.webContents.openDevTools();
27-
}
28-
} else {
29-
createProtocol('app');
30-
// Load the index.html when not in development
31-
window.loadURL(
32-
formatUrl({
33-
pathname: path.join(__dirname, 'index.html'),
34-
protocol: 'file',
35-
slashes: true,
36-
})
37-
);
38-
}
22+
if (isDevelopment) {
23+
// Load the url of the dev server if in development mode
24+
window.loadURL(process.env.WEBPACK_DEV_SERVER_URL);
25+
if (!process.env.IS_TEST) {
26+
window.webContents.openDevTools();
27+
}
28+
} else {
29+
createProtocol('app');
30+
// Load the index.html when not in development
31+
window.loadURL(
32+
formatUrl({
33+
pathname: path.join(__dirname, 'index.html'),
34+
protocol: 'file',
35+
slashes: true,
36+
})
37+
);
38+
}
3939

40-
window.on('closed', () => {
41-
mainWindow = null;
42-
});
40+
window.on('closed', () => {
41+
mainWindow = null;
42+
});
4343

44-
window.webContents.on('devtools-opened', () => {
45-
window.focus();
46-
setImmediate(() => {
47-
window.focus();
48-
});
49-
});
44+
window.webContents.on('devtools-opened', () => {
45+
window.focus();
46+
setImmediate(() => {
47+
window.focus();
48+
});
49+
});
5050

51-
return window;
51+
return window;
5252
}
5353

5454
// quit application when all windows are closed
5555
app.on('window-all-closed', () => {
56-
// on macOS it is common for applications to stay open until the user explicitly quits
57-
if (process.platform !== 'darwin') {
58-
app.quit();
59-
}
56+
// on macOS it is common for applications to stay open until the user explicitly quits
57+
if (process.platform !== 'darwin') {
58+
app.quit();
59+
}
6060
});
6161

6262
app.on('activate', () => {
63-
// on macOS it is common to re-create a window even after all windows have been closed
64-
if (mainWindow === null) {
65-
mainWindow = createMainWindow();
66-
}
63+
// on macOS it is common to re-create a window even after all windows have been closed
64+
if (mainWindow === null) {
65+
mainWindow = createMainWindow();
66+
}
6767
});
6868

6969
// create main BrowserWindow when electron is ready
7070
app.on('ready', async () => {
71-
if (isDevelopment && !process.env.IS_TEST) {
72-
// Install Vue Devtools
73-
await installVueDevtools();
74-
}
75-
mainWindow = createMainWindow();
71+
if (isDevelopment && !process.env.IS_TEST) {
72+
// Install Vue Devtools
73+
await installVueDevtools();
74+
}
75+
mainWindow = createMainWindow();
7676
});

0 commit comments

Comments
 (0)