adds moment.js

This commit is contained in:
msramalho
2025-02-08 23:33:59 +00:00
parent dcd507c47b
commit c656f5b814
5 changed files with 7659 additions and 7132 deletions

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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",

View File

@@ -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");

11800
yarn.lock

File diff suppressed because it is too large Load Diff