Skip to content

Commit 9aedcf3

Browse files
committed
Remove unused firebase-admin snippets
1 parent 24b81aa commit 9aedcf3

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

backend/.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,4 @@ node_modules/
6363

6464
# dotenv environment variables file
6565
.deploy_info
66-
env.json
67-
68-
utils/*
66+
env.json

backend/functions/src/index.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import * as functions from "firebase-functions";
22
import * as express from "express";
3-
import * as admin from "firebase-admin";
4-
admin.initializeApp({
5-
serviceAccountId: "[email protected]",
6-
});
73

84
import { initializeJomql } from "jomql";
95
import "./schema";
@@ -24,7 +20,7 @@ const allowedOrigins = [
2420
];
2521

2622
// extract the user ID from all requests.
27-
app.use(async function (req: any, res, next) {
23+
app.use(async function (req, res, next) {
2824
try {
2925
if (req.headers.authorization) {
3026
req.user = await validateToken(req.headers.authorization);

reference_client/components/dialog/shareRecordDialog.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
return sharedService.capitalizeString(this.recordInfo.type)
6565
},
6666
shareUrl() {
67-
return this.selectedItem
67+
return this.selectedItem && this.recordInfo.shareOptions
6868
? window.location.origin +
6969
this.recordInfo.shareOptions.route +
7070
'?filters=id-eq-' +

reference_client/pages/settings.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<v-layout align-center justify-center>
44
<v-flex xs12 sm8 md4>
55
<v-card class="elevation-12">
6-
<v-toolbar color="primary" dark flat>
6+
<v-toolbar color="accent" flat>
77
<v-toolbar-title>User Settings</v-toolbar-title>
88
<v-spacer></v-spacer>
99
</v-toolbar>

0 commit comments

Comments
 (0)