No debounce while offline, static index.html page, 3.0.10-beta2

This commit is contained in:
Mo Bitar 2019-06-03 11:41:08 -05:00
parent a503051628
commit 678f8d73bc
No known key found for this signature in database
GPG Key ID: C9EAD0759817F96F
7 changed files with 70 additions and 47 deletions

View File

@ -1,3 +0,0 @@
{
"allow_root": true
}

1
.gitignore vendored
View File

@ -20,6 +20,7 @@
/app/assets/templates/generated/
/node_modules
/dist
/dist/javascripts/app.js
/dist/javascripts/compiled.js
/dist/javascripts/transpiled.js

View File

@ -1,37 +1,40 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# OS & IDE
.DS_Store
# Ignore bundler config.
/.bundle
# Ignore all logfiles and tempfiles.
.git
/.sass-cache
/app
/bin
/config
/db
/lib
/log
/node_modules
/test
/vendor
/log/*
!/log/.keep
/tmp
/config/cap.yml
/app/assets/templates/generated/
/node_modules
/.sass-cache
# Ignore ENV variables config
.env
.ssh
dump.rdb
# Ignore compiled assets
/public/assets
# Ignore user uploads
/public/uploads/*
!/public/uploads/.keep
.babelrc
.gitignore
.gitmodules
.npmignore
Capfile
config.ru
Gemfile
Gemfile.lock
Gruntfile.js
package-lock.json
package.json
Rakefile
testing-server.js

View File

@ -1,5 +1,5 @@
angular.module('app')
.constant('appVersion', '3.0.10-beta1')
.constant('appVersion', '3.0.10-beta2')
;

View File

@ -303,7 +303,12 @@ angular.module('app')
$timeout.cancel(this.saveTimeout);
}
let syncDebouceMs = bypassDebouncer ? SyncNoDebounce : SyncDebouce;
let syncDebouceMs;
if(authManager.offline() || bypassDebouncer) {
syncDebouceMs = SyncNoDebounce;
} else {
syncDebouceMs = SyncDebouce;
}
this.saveTimeout = $timeout(() => {
syncManager.sync().then((response) => {

View File

@ -1,19 +0,0 @@
machine:
ruby:
version:
2.3.1
node:
version:
6.1.0
dependencies:
pre:
- npm install -g grunt
override:
- bundle install
- npm install
- grunt
test:
override:
- npm test

36
index.html Normal file
View File

@ -0,0 +1,36 @@
<!-- <!DOCTYPE html> -->
<html ng-app="app">
<head>
<meta charset="utf-8"/>
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<link href="public/favicon/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180"></link>
<link href="public/favicon/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png"></link>
<link href="public/favicon/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"></link>
<link href="public/favicon/site.webmanifest" rel="manifest"></link>
<link color="#5bbad5" href="favicon/safari-pinned-tab.svg" rel="mask-icon"></link>
<meta name="theme-color" content="#ffffff">
<meta ng-bind="title" content="Standard Notes" name="apple-mobile-web-app-title"/>
<meta ng-bind="title" content="Standard Notes" name="application-name"/>
<title>Notes · Standard Notes</title>
<script>
window._default_sf_server = "https://sync.standardnotes.org";
window._extensions_manager_location = "public/extensions/extensions-manager/dist/index.html";
window._batch_manager_location = "public/extensions/batch-manager/dist/index.min.html";
</script>
<script src="dist/javascripts/compiled.js"></script>
<link rel="stylesheet" media="all" href="dist/stylesheets/app.css" debug="false" />
</head>
<body>
<div ng-controller="HomeCtrl" ng-include="'home.html'"></div>
</body>
</html>