mirror of
https://github.com/bellingcat/auto-archiver-setup-tool.git
synced 2026-06-11 13:08:37 +03:00
adds moment.js
This commit is contained in:
@@ -22,7 +22,6 @@ const PRIVATE_KEY = defineSecret('GOOGLE_API_PRIVATE_KEY');
|
||||
const { google } = require('googleapis');
|
||||
|
||||
initializeApp();
|
||||
|
||||
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
|
||||
String.prototype.hashCode = function () {
|
||||
@@ -40,6 +39,7 @@ String.prototype.hashCode = function () {
|
||||
return hash;
|
||||
}
|
||||
|
||||
//TODO: disable the scheduler
|
||||
exports.processSheetScheduler = onSchedule(
|
||||
{ secrets: [API_TOKEN, CLIENT_EMAIL, PRIVATE_KEY], schedule: "* * * * *" },
|
||||
async (event) => {
|
||||
@@ -87,7 +87,6 @@ exports.processSheetScheduler = onSchedule(
|
||||
};
|
||||
|
||||
const response = await fetch(url, options);
|
||||
console.log(response);
|
||||
|
||||
await doc.ref.update({ lastArchived: Date.now() });
|
||||
|
||||
|
||||
2985
package-lock.json
generated
2985
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,7 @@
|
||||
"firebaseui": "^6.0.2",
|
||||
"gapi-script": "^1.2.0",
|
||||
"googleapis": "^134.0.0",
|
||||
"moment": "^2.30.1",
|
||||
"vue": "^3",
|
||||
"vue-router": "^4",
|
||||
"vuetify": "^3",
|
||||
|
||||
@@ -6,6 +6,7 @@ import { VDateInput } from 'vuetify/labs/VDateInput';
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
import moment from "moment";
|
||||
import "vuetify/styles";
|
||||
import "@mdi/font/css/materialdesignicons.css";
|
||||
import "./styles/global.css";
|
||||
@@ -20,5 +21,6 @@ const app = createApp(App);
|
||||
app.use(router);
|
||||
app.use(store);
|
||||
app.use(vuetify);
|
||||
app.config.globalProperties.$moment = moment;
|
||||
|
||||
app.mount("#app");
|
||||
|
||||
Reference in New Issue
Block a user