Add functions and search page
This commit is contained in:
parent
931ec5472c
commit
684d786e36
10
.firebase/hosting.ZGlzdFxQUS1NYW4.cache
Normal file
10
.firebase/hosting.ZGlzdFxQUS1NYW4.cache
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
index.html,1560330268344,5927cf65ac12abbe170b9d6d6eb07b47f6056d7562720e524a581f3198d1cfef
|
||||||
|
3rdpartylicenses.txt,1560330268263,e93e82b92cbf43a870879201437a9c4911fe7fc916e49c8a4a2c06f516588d11
|
||||||
|
favicon.ico,1560330268263,3b78f993f13027179977aaa04a5398b7d6832af035f0aacd1e517ff2c628464a
|
||||||
|
polyfills-es2015.e954256595c973372414.js,1560330268263,32055be4934d771538d90ef74c3d595b8c7e622887d13449a652487af6faba3e
|
||||||
|
runtime-es2015.858f8dd898b75fe86926.js,1560330268263,6defac21e896959ee0c165c6e34da9d4262692855dbd42ea0111f7662f4db473
|
||||||
|
runtime-es5.741402d1d47331ce975c.js,1560330231453,6defac21e896959ee0c165c6e34da9d4262692855dbd42ea0111f7662f4db473
|
||||||
|
styles.e70214f3497e385fb2d3.css,1560330268263,564b264867b14fd7c04309aee7b7d8cba071572368b56e2866be4d8e7310cccd
|
||||||
|
polyfills-es5.405730e5ac8f727bd7d7.js,1560330231469,fc4f710b3195578c912aa6c287560507e7dd1ca1313cb3c62901a7251237ca8e
|
||||||
|
main-es2015.d59b349e0dba71a72a16.js,1560330268263,5202ba538bb4190f32a1721cd86010328482669eb242d09288350e7c096c19b2
|
||||||
|
main-es5.79bb47602785c52f77de.js,1560330231469,b5b3426d044e2923ef1763c8aee5cf7743dc9fc91752bd702a5cd6acea1d1875
|
@ -46,6 +46,7 @@
|
|||||||
"src/assets"
|
"src/assets"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
|
"./node_modules/@angular/material/prebuilt-themes/pink-bluegrey.css",
|
||||||
"src/styles.less"
|
"src/styles.less"
|
||||||
],
|
],
|
||||||
"scripts": []
|
"scripts": []
|
||||||
@ -106,6 +107,7 @@
|
|||||||
"src/assets"
|
"src/assets"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
|
"./node_modules/@angular/material/prebuilt-themes/pink-bluegrey.css",
|
||||||
"src/styles.less"
|
"src/styles.less"
|
||||||
],
|
],
|
||||||
"scripts": []
|
"scripts": []
|
||||||
@ -137,6 +139,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}},
|
}
|
||||||
|
},
|
||||||
"defaultProject": "PQ-Man"
|
"defaultProject": "PQ-Man"
|
||||||
}
|
}
|
136
firebase-debug.log
Normal file
136
firebase-debug.log
Normal file
@ -0,0 +1,136 @@
|
|||||||
|
[debug] [2019-06-12T09:46:48.317Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T09:46:48.320Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js functions:shell
|
||||||
|
[debug] [2019-06-12T09:46:48.321Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T09:46:48.321Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T09:46:48.321Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T09:46:48.322Z] Time: Wed Jun 12 2019 18:46:48 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T09:46:48.322Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T09:46:48.334Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T09:46:48.335Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T09:46:48.336Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T09:46:48.338Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T09:46:49.265Z] <<< HTTP RESPONSE 200
|
||||||
|
[warn] ! Your requested "node" version "8" doesn't match your global version "10"
|
||||||
|
[debug] [2019-06-12T09:46:49.272Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T09:46:50.085Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T09:46:50.086Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T09:46:50.562Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5001
|
||||||
|
[debug] [2019-06-12T09:46:50.571Z] [functions] Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T09:46:51.169Z] DEBUG: Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T09:46:51.170Z] DEBUG: Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[warn] ! The Cloud Functions emulator requires the module "firebase-functions-test" to be installed as a development dependency. To fix this, run "npm install --save-dev firebase-functions-test" in your functions directory.
|
||||||
|
[debug] [2019-06-12T09:46:51.378Z] [functions] Your functions could not be parsed due to an issue with your node_modules (see above)
|
||||||
|
[debug] [2019-06-12T09:47:02.855Z] DEBUG: File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T09:47:04.552Z] DEBUG: Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T09:47:04.554Z] DEBUG: Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[warn] ! The Cloud Functions emulator requires the module "firebase-functions-test" to be installed as a development dependency. To fix this, run "npm install --save-dev firebase-functions-test" in your functions directory.
|
||||||
|
[debug] [2019-06-12T09:47:04.934Z] [functions] Your functions could not be parsed due to an issue with your node_modules (see above)
|
||||||
|
[debug] [2019-06-12T09:48:50.310Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T09:48:50.312Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve
|
||||||
|
[debug] [2019-06-12T09:48:50.313Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T09:48:50.313Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T09:48:50.313Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T09:48:50.314Z] Time: Wed Jun 12 2019 18:48:50 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T09:48:50.314Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T09:48:50.327Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T09:48:50.328Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T09:48:50.328Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T09:48:50.330Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T09:48:51.198Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T09:48:51.199Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T09:48:52.006Z] <<< HTTP RESPONSE 200
|
||||||
|
[info]
|
||||||
|
[info] === Serving from 'C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site'...
|
||||||
|
[info]
|
||||||
|
[warn] ! Your requested "node" version "8" doesn't match your global version "10"
|
||||||
|
[debug] [2019-06-12T09:48:52.017Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466/clients/_:getWebAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T09:48:52.017Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T09:48:52.504Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5001
|
||||||
|
[debug] [2019-06-12T09:48:53.060Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[info] i hosting: Serving hosting files from: dist/PQ-Man
|
||||||
|
[info] + hosting: Local server: http://localhost:5000
|
||||||
|
[debug] [2019-06-12T09:48:53.629Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T09:48:53.630Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[warn] ! The Cloud Functions emulator requires the module "firebase-functions-test" to be installed as a development dependency. To fix this, run "npm install --save-dev firebase-functions-test" in your functions directory.
|
||||||
|
[info] i functions: Your functions could not be parsed due to an issue with your node_modules (see above)
|
||||||
|
[debug] [2019-06-12T12:46:28.923Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:46:28.926Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js deploy
|
||||||
|
[debug] [2019-06-12T12:46:28.926Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:46:28.926Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:46:28.926Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:46:28.928Z] Time: Wed Jun 12 2019 21:46:28 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:46:28.928Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:46:28.939Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:46:28.941Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:46:28.941Z] [iam] checking project pq-man for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get","firebasehosting.sites.update"]
|
||||||
|
[debug] [2019-06-12T12:46:28.944Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:46:29.861Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:46:29.863Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:46:30.683Z] <<< HTTP RESPONSE 200
|
||||||
|
[info]
|
||||||
|
[info] === Deploying to 'pq-man'...
|
||||||
|
[info]
|
||||||
|
[info] i deploying functions, hosting
|
||||||
|
[info] Running command: npm --prefix "$RESOURCE_DIR" run lint
|
||||||
|
[info] Running command: npm --prefix "$RESOURCE_DIR" run build
|
||||||
|
[info] + functions: Finished running predeploy script.
|
||||||
|
[info] Running command: npm run build-prod
|
||||||
|
[info] + hosting: Finished running predeploy script.
|
||||||
|
[debug] [2019-06-12T12:47:32.569Z] > [functions] package.json contents: {
|
||||||
|
"name": "functions",
|
||||||
|
"scripts": {
|
||||||
|
"lint": "tslint --project tsconfig.json",
|
||||||
|
"build": "tsc",
|
||||||
|
"serve": "npm run build && firebase serve --only functions",
|
||||||
|
"shell": "npm run build && firebase functions:shell",
|
||||||
|
"start": "npm run shell",
|
||||||
|
"deploy": "firebase deploy --only functions",
|
||||||
|
"logs": "firebase functions:log"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "10"
|
||||||
|
},
|
||||||
|
"main": "lib/index.js",
|
||||||
|
"dependencies": {
|
||||||
|
"firebase-admin": "~7.0.0",
|
||||||
|
"firebase-functions": "^2.3.0",
|
||||||
|
"request": "^2.88.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"firebase-functions-test": "^0.1.6",
|
||||||
|
"tslint": "^5.12.0",
|
||||||
|
"typescript": "^3.2.2"
|
||||||
|
},
|
||||||
|
"private": true
|
||||||
|
}
|
||||||
|
[info] i functions: ensuring necessary APIs are enabled...
|
||||||
|
[debug] [2019-06-12T12:47:32.570Z] >>> HTTP REQUEST GET https://servicemanagement.googleapis.com/v1/services/cloudfunctions.googleapis.com/projectSettings/pq-man?view=CONSUMER_VIEW
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:47:32.570Z] >>> HTTP REQUEST GET https://servicemanagement.googleapis.com/v1/services/runtimeconfig.googleapis.com/projectSettings/pq-man?view=CONSUMER_VIEW
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:47:34.293Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:47:34.396Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: all necessary APIs are enabled
|
||||||
|
[debug] [2019-06-12T12:47:34.397Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:47:35.193Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:47:35.193Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:47:36.033Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:47:36.034Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/pq-man/versions
|
||||||
|
|
@ -13,5 +13,11 @@
|
|||||||
"destination": "/index.html"
|
"destination": "/index.html"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"functions": {
|
||||||
|
"predeploy": [
|
||||||
|
"npm --prefix \"$RESOURCE_DIR\" run lint",
|
||||||
|
"npm --prefix \"$RESOURCE_DIR\" run build"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
8
functions/.gitignore
vendored
Normal file
8
functions/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
## Compiled JavaScript files
|
||||||
|
**/*.js
|
||||||
|
**/*.js.map
|
||||||
|
|
||||||
|
# Typescript v1 declaration files
|
||||||
|
typings/
|
||||||
|
|
||||||
|
node_modules/
|
591
functions/firebase-debug.log
Normal file
591
functions/firebase-debug.log
Normal file
@ -0,0 +1,591 @@
|
|||||||
|
[debug] [2019-06-12T12:34:18.789Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:34:18.792Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:34:18.793Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:34:18.793Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:34:18.793Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:34:18.795Z] Time: Wed Jun 12 2019 21:34:18 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:34:18.795Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:34:18.807Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:34:18.808Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:34:18.808Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:34:18.812Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:34:19.669Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:34:19.671Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:34:20.483Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:34:20.494Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:34:21.066Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:34:21.627Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:34:21.628Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:34:22.381Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:34:23.784Z] Accepted request GET /pq-man/us-central1/search?s=handball --> search
|
||||||
|
[debug] [2019-06-12T12:34:24.375Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:34:24.378Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:34:25.197Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:34:25.217Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:34:25.217Z]
|
||||||
|
[debug] [2019-06-12T12:34:25.217Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:34:25.227Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\8112"}
|
||||||
|
[debug] [2019-06-12T12:34:25.230Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\8112"}
|
||||||
|
[debug] [2019-06-12T12:34:25.237Z] Ephemeral server used!
|
||||||
|
[info] >
|
||||||
|
[debug] [2019-06-12T12:34:25.239Z] Ephemeral server survived.
|
||||||
|
[warn] ! TypeError: Converting circular structure to JSON
|
||||||
|
at JSON.stringify (<anonymous>)
|
||||||
|
at stringify (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\response.js:1127:12)
|
||||||
|
at ServerResponse.json (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\response.js:264:14)
|
||||||
|
at ServerResponse.send (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\response.js:162:21)
|
||||||
|
at exports.search.functions.https.onRequest (C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\lib\index.js:13:9)
|
||||||
|
at Run (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:413:20)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:387:19
|
||||||
|
at Generator.next (<anonymous>)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:7:71
|
||||||
|
at new Promise (<anonymous>)
|
||||||
|
[warn] ! Your function was killed because it raised an unhandled error.
|
||||||
|
[debug] [2019-06-12T12:34:44.027Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:34:45.667Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:34:45.669Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:34:46.505Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:34:48.239Z] Accepted request GET /pq-man/us-central1/search?s=handball --> search
|
||||||
|
[debug] [2019-06-12T12:34:48.937Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:34:48.940Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:34:49.884Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:34:49.902Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:34:49.902Z]
|
||||||
|
[debug] [2019-06-12T12:34:49.902Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:34:49.911Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\10720"}
|
||||||
|
[debug] [2019-06-12T12:34:49.913Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\10720"}
|
||||||
|
[debug] [2019-06-12T12:34:49.922Z] Ephemeral server used!
|
||||||
|
[info] >
|
||||||
|
[debug] [2019-06-12T12:34:49.924Z] Ephemeral server survived.
|
||||||
|
[warn] ! TypeError: Converting circular structure to JSON
|
||||||
|
at JSON.stringify (<anonymous>)
|
||||||
|
at stringify (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\response.js:1127:12)
|
||||||
|
at ServerResponse.json (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\response.js:264:14)
|
||||||
|
at ServerResponse.send (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\response.js:162:21)
|
||||||
|
at exports.search.functions.https.onRequest (C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\lib\index.js:13:9)
|
||||||
|
at Run (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:413:20)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:387:19
|
||||||
|
at Generator.next (<anonymous>)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:7:71
|
||||||
|
at new Promise (<anonymous>)
|
||||||
|
[warn] ! Your function was killed because it raised an unhandled error.
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:35:03.494Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:35:03.497Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:35:03.497Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:35:03.497Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:35:03.497Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:35:03.499Z] Time: Wed Jun 12 2019 21:35:03 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:35:03.499Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:35:03.511Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:35:03.512Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:35:03.513Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:35:03.515Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:35:04.436Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:35:04.438Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:35:05.245Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:35:05.256Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:35:06.031Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:35:06.691Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:35:06.692Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:35:07.479Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:35:08.566Z] Accepted request GET /pq-man/us-central1/search?s=handball --> search
|
||||||
|
[debug] [2019-06-12T12:35:09.154Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:35:09.156Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:35:09.973Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:35:09.990Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:35:09.990Z]
|
||||||
|
[debug] [2019-06-12T12:35:09.990Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:35:10.001Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\5564"}
|
||||||
|
[debug] [2019-06-12T12:35:10.004Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\5564"}
|
||||||
|
[debug] [2019-06-12T12:35:10.011Z] Ephemeral server used!
|
||||||
|
[info] >
|
||||||
|
[debug] [2019-06-12T12:35:10.013Z] Ephemeral server survived.
|
||||||
|
[warn] ! TypeError: Converting circular structure to JSON
|
||||||
|
at JSON.stringify (<anonymous>)
|
||||||
|
at exports.search.functions.https.onRequest (C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\lib\index.js:13:19)
|
||||||
|
at Run (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:413:20)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:387:19
|
||||||
|
at Generator.next (<anonymous>)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:7:71
|
||||||
|
at new Promise (<anonymous>)
|
||||||
|
at __awaiter (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:3:12)
|
||||||
|
at Run (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:380:12)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:412:15
|
||||||
|
[warn] ! Your function was killed because it raised an unhandled error.
|
||||||
|
[debug] [2019-06-12T12:35:58.805Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:36:00.607Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:36:00.608Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:36:11.692Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:36:11.696Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:36:11.696Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:36:11.696Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:36:11.696Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:36:11.698Z] Time: Wed Jun 12 2019 21:36:11 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:36:11.698Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:36:11.710Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:36:11.711Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:36:11.711Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:36:11.714Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:36:12.585Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:36:12.586Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:36:13.392Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:36:13.401Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:36:14.171Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:36:15.018Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:36:15.018Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:36:15.909Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:36:16.494Z] Accepted request GET /pq-man/us-central1/search?s=handball --> search
|
||||||
|
[debug] [2019-06-12T12:36:16.748Z] Accepted request GET /pq-man/us-central1/search?s=handball --> search
|
||||||
|
[debug] [2019-06-12T12:36:17.167Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:36:17.169Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:36:17.413Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:36:17.415Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:36:18.243Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:36:18.267Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:36:18.268Z]
|
||||||
|
[debug] [2019-06-12T12:36:18.268Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:36:18.280Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\18784"}
|
||||||
|
[debug] [2019-06-12T12:36:18.284Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\18784"}
|
||||||
|
[debug] [2019-06-12T12:36:18.293Z] Ephemeral server used!
|
||||||
|
[info] >
|
||||||
|
[debug] [2019-06-12T12:36:18.302Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[debug] [2019-06-12T12:36:18.466Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:36:18.485Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:36:18.485Z]
|
||||||
|
[debug] [2019-06-12T12:36:18.485Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:36:18.496Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\13280"}
|
||||||
|
[debug] [2019-06-12T12:36:18.498Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\13280"}
|
||||||
|
[debug] [2019-06-12T12:36:18.506Z] Ephemeral server used!
|
||||||
|
[info] >
|
||||||
|
[debug] [2019-06-12T12:36:18.513Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[debug] [2019-06-12T12:36:25.915Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:36:27.536Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:36:27.537Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:36:28.466Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:36:29.471Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:36:31.307Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:36:31.308Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:36:32.289Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:37:35.513Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:37:45.746Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:37:45.749Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:37:45.749Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:37:45.749Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:37:45.749Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:37:45.751Z] Time: Wed Jun 12 2019 21:37:45 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:37:45.751Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:37:45.762Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:37:45.763Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:37:45.764Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:37:45.766Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:37:46.698Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:37:46.700Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:37:47.516Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:37:47.524Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:37:48.201Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:37:48.769Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:37:48.769Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:37:49.926Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:37:51.732Z] Accepted request GET /pq-man/us-central1/search?s=handball --> search
|
||||||
|
[debug] [2019-06-12T12:37:52.520Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:37:52.522Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:37:53.384Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:37:53.402Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:37:53.403Z]
|
||||||
|
[debug] [2019-06-12T12:37:53.403Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:37:53.412Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\13280"}
|
||||||
|
[debug] [2019-06-12T12:37:53.415Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\13280"}
|
||||||
|
[debug] [2019-06-12T12:37:53.423Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:37:53.429Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:38:13.509Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:38:13.512Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:38:13.512Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:38:13.512Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:38:13.512Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:38:13.514Z] Time: Wed Jun 12 2019 21:38:13 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:38:13.514Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:38:13.526Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:38:13.526Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:38:13.527Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:38:13.529Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:38:14.599Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:38:14.600Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:38:15.406Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:38:15.414Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:38:15.904Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:38:16.462Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:38:16.462Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:38:17.213Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:38:34.928Z] Accepted request GET /pq-man/us-central1/search?s=handball --> search
|
||||||
|
[debug] [2019-06-12T12:38:35.544Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:38:35.547Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:38:36.360Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:38:36.378Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:38:36.378Z]
|
||||||
|
[debug] [2019-06-12T12:38:36.378Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:38:36.387Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\1376"}
|
||||||
|
[debug] [2019-06-12T12:38:36.391Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\1376"}
|
||||||
|
[debug] [2019-06-12T12:38:36.399Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:38:36.400Z] Ephemeral server survived.
|
||||||
|
[warn] ! TypeError: req.query is not a function
|
||||||
|
at exports.search.functions.https.onRequest (C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\lib\index.js:12:33)
|
||||||
|
at Run (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:413:20)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:387:19
|
||||||
|
at Generator.next (<anonymous>)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:7:71
|
||||||
|
at new Promise (<anonymous>)
|
||||||
|
at __awaiter (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:3:12)
|
||||||
|
at Run (C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:380:12)
|
||||||
|
at C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:412:15
|
||||||
|
at Generator.next (<anonymous>)
|
||||||
|
[warn] ! Your function was killed because it raised an unhandled error.
|
||||||
|
[debug] [2019-06-12T12:38:44.580Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:38:46.210Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:38:46.212Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:38:47.048Z] firebase-admin has been stubbed.
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:39:06.653Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:39:06.656Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:39:06.657Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:39:06.657Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:39:06.657Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:39:06.659Z] Time: Wed Jun 12 2019 21:39:06 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:39:06.659Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:39:06.672Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:39:06.673Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:39:06.673Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:39:06.675Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:39:07.538Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:39:07.540Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:39:08.352Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:39:08.361Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:39:09.064Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:39:09.613Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:39:09.614Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:39:10.664Z] Accepted request GET /pq-man/us-central1/search?s=handball --> search
|
||||||
|
[debug] [2019-06-12T12:39:10.705Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:39:11.290Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:39:11.293Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:39:12.119Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:39:12.137Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:39:12.137Z]
|
||||||
|
[debug] [2019-06-12T12:39:12.137Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:39:12.146Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\17324"}
|
||||||
|
[debug] [2019-06-12T12:39:12.149Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\17324"}
|
||||||
|
[debug] [2019-06-12T12:39:12.157Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:39:12.162Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[debug] [2019-06-12T12:39:16.701Z] Accepted request GET /pq-man/us-central1/search/handball --> search
|
||||||
|
[debug] [2019-06-12T12:39:17.437Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:39:17.439Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:39:18.265Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:39:18.283Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:39:18.283Z]
|
||||||
|
[debug] [2019-06-12T12:39:18.283Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:39:18.293Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\4608"}
|
||||||
|
[debug] [2019-06-12T12:39:18.295Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\4608"}
|
||||||
|
[debug] [2019-06-12T12:39:18.303Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:39:18.307Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[debug] [2019-06-12T12:40:45.127Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:40:46.885Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:40:46.886Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:40:50.855Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:40:55.504Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:40:57.138Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:40:57.140Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:40:57.944Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:41:24.409Z] Accepted request GET /pq-man/us-central1/search/handball --> search
|
||||||
|
[debug] [2019-06-12T12:41:25.015Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:41:25.021Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:41:26.190Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:41:26.211Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:41:26.211Z]
|
||||||
|
[debug] [2019-06-12T12:41:26.211Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:41:26.221Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\16888"}
|
||||||
|
[debug] [2019-06-12T12:41:26.223Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\16888"}
|
||||||
|
[debug] [2019-06-12T12:41:26.230Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:41:26.233Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[debug] [2019-06-12T12:41:29.598Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:41:40.836Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:41:40.839Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:41:40.839Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:41:40.839Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:41:40.839Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:41:40.840Z] Time: Wed Jun 12 2019 21:41:40 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:41:40.840Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:41:40.855Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:41:40.856Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:41:40.856Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:41:40.859Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:41:41.735Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:41:41.737Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:41:42.548Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:41:42.557Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:41:43.107Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:41:43.663Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:41:43.663Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:41:44.518Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:41:45.022Z] Accepted request GET /pq-man/us-central1/search/handball --> search
|
||||||
|
[debug] [2019-06-12T12:41:45.601Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:41:45.603Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:41:46.408Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:41:46.427Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:41:46.427Z]
|
||||||
|
[debug] [2019-06-12T12:41:46.427Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:41:46.439Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\7584"}
|
||||||
|
[debug] [2019-06-12T12:41:46.441Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\7584"}
|
||||||
|
[debug] [2019-06-12T12:41:46.450Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:41:46.457Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[debug] [2019-06-12T12:42:37.610Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:42:46.754Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:42:46.757Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:42:46.757Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:42:46.757Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:42:46.757Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:42:46.758Z] Time: Wed Jun 12 2019 21:42:46 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:42:46.758Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:42:46.771Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:42:46.772Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:42:46.772Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:42:46.774Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:42:47.692Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:42:47.694Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:42:48.496Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:42:48.504Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:42:48.980Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:42:49.551Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:42:49.551Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:42:50.315Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:42:52.464Z] Accepted request GET /pq-man/us-central1/search/handball --> search
|
||||||
|
[debug] [2019-06-12T12:42:53.072Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:42:53.075Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:42:53.902Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:42:53.922Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:42:53.922Z]
|
||||||
|
[debug] [2019-06-12T12:42:53.922Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:42:53.931Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\7800"}
|
||||||
|
[debug] [2019-06-12T12:42:53.934Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\7800"}
|
||||||
|
[debug] [2019-06-12T12:42:53.942Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:42:53.949Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[debug] [2019-06-12T12:43:08.309Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:43:17.718Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:43:17.721Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:43:17.721Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:43:17.721Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:43:17.721Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:43:17.723Z] Time: Wed Jun 12 2019 21:43:17 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:43:17.723Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:43:17.736Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:43:17.737Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:43:17.737Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:43:17.740Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:43:18.654Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:43:18.655Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:43:19.474Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:43:19.482Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:43:19.972Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:43:20.515Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:43:20.515Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:43:21.269Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:43:25.333Z] Accepted request GET /pq-man/us-central1/search/handball --> search
|
||||||
|
[debug] [2019-06-12T12:43:25.932Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:43:25.934Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:43:26.759Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:43:26.779Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:43:26.779Z]
|
||||||
|
[debug] [2019-06-12T12:43:26.779Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:43:26.788Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\18224"}
|
||||||
|
[debug] [2019-06-12T12:43:26.791Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\18224"}
|
||||||
|
[debug] [2019-06-12T12:43:26.800Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:43:26.806Z] Ephemeral server survived.
|
||||||
|
[info] i functions: Finished "search" in ~1s
|
||||||
|
[debug] [2019-06-12T12:43:51.474Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:43:53.217Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:43:53.218Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[info] Shutting down...
|
||||||
|
[debug] [2019-06-12T12:44:02.193Z] ----------------------------------------------------------------------
|
||||||
|
[debug] [2019-06-12T12:44:02.196Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions
|
||||||
|
[debug] [2019-06-12T12:44:02.197Z] CLI Version: 6.10.0
|
||||||
|
[debug] [2019-06-12T12:44:02.197Z] Platform: win32
|
||||||
|
[debug] [2019-06-12T12:44:02.197Z] Node Version: v10.15.1
|
||||||
|
[debug] [2019-06-12T12:44:02.198Z] Time: Wed Jun 12 2019 21:44:02 GMT+0900 (GMT+09:00)
|
||||||
|
[debug] [2019-06-12T12:44:02.198Z] ----------------------------------------------------------------------
|
||||||
|
[debug]
|
||||||
|
[debug] [2019-06-12T12:44:02.211Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
||||||
|
[debug] [2019-06-12T12:44:02.212Z] > authorizing via signed-in user
|
||||||
|
[debug] [2019-06-12T12:44:02.212Z] [iam] checking project pq-man for permissions ["firebase.projects.get"]
|
||||||
|
[debug] [2019-06-12T12:44:02.215Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:44:03.082Z] <<< HTTP RESPONSE 200
|
||||||
|
[debug] [2019-06-12T12:44:03.084Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:44:03.878Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Using node@10 from host.
|
||||||
|
[debug] [2019-06-12T12:44:03.886Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig
|
||||||
|
|
||||||
|
[debug] [2019-06-12T12:44:04.379Z] <<< HTTP RESPONSE 200
|
||||||
|
[info] + functions: Emulator started at http://localhost:5000
|
||||||
|
[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions...
|
||||||
|
[debug] [2019-06-12T12:44:04.948Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:44:04.949Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:44:05.702Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: HTTP trigger initialized at http://localhost:5000/pq-man/us-central1/search
|
||||||
|
[debug] [2019-06-12T12:44:48.098Z] Accepted request GET /pq-man/us-central1/search/handball --> search
|
||||||
|
[debug] [2019-06-12T12:44:48.751Z] Functions runtime initialized.
|
||||||
|
[info] i functions: Beginning execution of "search"
|
||||||
|
[debug] [2019-06-12T12:44:48.754Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:44:49.624Z] firebase-admin has been stubbed.
|
||||||
|
[debug] [2019-06-12T12:44:49.930Z] Trigger "search" has been found, beginning invocation!
|
||||||
|
[debug] [2019-06-12T12:44:49.930Z]
|
||||||
|
[debug] [2019-06-12T12:44:49.930Z] Running search in mode HTTPS
|
||||||
|
[info] i Your code has been provided a "firebase-admin" instance.
|
||||||
|
[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically.
|
||||||
|
- Learn more: https://firebase.google.com/docs/admin/setup
|
||||||
|
[debug] [2019-06-12T12:44:49.940Z] {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\10380"}
|
||||||
|
[debug] [2019-06-12T12:44:49.951Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\C:\\Users\\Mathieu\\Documents\\CAU-Project\\CAU-NLP-Spring-2019-PQ-Man-Site\\functions\\10380"}
|
||||||
|
[debug] [2019-06-12T12:44:49.966Z] Ephemeral server used!
|
||||||
|
[debug] [2019-06-12T12:44:49.973Z] Ephemeral server survived.
|
||||||
|
[debug] [2019-06-12T12:44:59.310Z] File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers
|
||||||
|
[debug] [2019-06-12T12:45:01.054Z] Functions runtime initialized.
|
||||||
|
[debug] [2019-06-12T12:45:01.056Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true}
|
||||||
|
[debug] [2019-06-12T12:45:02.001Z] firebase-admin has been stubbed.
|
||||||
|
[info] i functions: Finished "search" in ~21s
|
||||||
|
[info] Shutting down...
|
3123
functions/package-lock.json
generated
Normal file
3123
functions/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
27
functions/package.json
Normal file
27
functions/package.json
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"name": "functions",
|
||||||
|
"scripts": {
|
||||||
|
"lint": "tslint --project tsconfig.json",
|
||||||
|
"build": "tsc",
|
||||||
|
"serve": "npm run build && firebase serve --only functions",
|
||||||
|
"shell": "npm run build && firebase functions:shell",
|
||||||
|
"start": "npm run shell",
|
||||||
|
"deploy": "firebase deploy --only functions",
|
||||||
|
"logs": "firebase functions:log"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "10"
|
||||||
|
},
|
||||||
|
"main": "lib/index.js",
|
||||||
|
"dependencies": {
|
||||||
|
"firebase-admin": "~7.0.0",
|
||||||
|
"firebase-functions": "^2.3.0",
|
||||||
|
"request": "^2.88.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"firebase-functions-test": "^0.1.6",
|
||||||
|
"tslint": "^5.12.0",
|
||||||
|
"typescript": "^3.2.2"
|
||||||
|
},
|
||||||
|
"private": true
|
||||||
|
}
|
21
functions/src/index.ts
Normal file
21
functions/src/index.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import * as functions from 'firebase-functions';
|
||||||
|
import * as request from 'request';
|
||||||
|
|
||||||
|
// // Start writing Firebase Functions
|
||||||
|
// // https://firebase.google.com/docs/functions/typescript
|
||||||
|
//
|
||||||
|
// export const helloWorld = functions.https.onRequest((request, response) => {
|
||||||
|
// response.send("Hello from Firebase!");
|
||||||
|
// });
|
||||||
|
|
||||||
|
export const search = functions.https.onRequest( ( req, res ) => {
|
||||||
|
|
||||||
|
request( 'http://142.4.212.26:8080/search?s=' + req.params[0], ( error, response, body ) => {
|
||||||
|
res.send( body );
|
||||||
|
} );
|
||||||
|
// request.get( 'http://142.4.212.26:8080/search?s=' + req.query.s ).on( "error", ( data ) => {
|
||||||
|
// res.send( data );
|
||||||
|
// } ).on( "response", ( data ) => {
|
||||||
|
// res.send( data );
|
||||||
|
// } );
|
||||||
|
} );
|
15
functions/tsconfig.json
Normal file
15
functions/tsconfig.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"outDir": "lib",
|
||||||
|
"sourceMap": true,
|
||||||
|
"strict": true,
|
||||||
|
"target": "es2017"
|
||||||
|
},
|
||||||
|
"compileOnSave": true,
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
]
|
||||||
|
}
|
118
functions/tslint.json
Normal file
118
functions/tslint.json
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
{
|
||||||
|
"rules": {
|
||||||
|
// -- Strict errors --
|
||||||
|
// These lint rules are likely always a good idea.
|
||||||
|
|
||||||
|
// Force function overloads to be declared together. This ensures readers understand APIs.
|
||||||
|
"adjacent-overload-signatures": true,
|
||||||
|
|
||||||
|
// Do not allow the subtle/obscure comma operator.
|
||||||
|
"ban-comma-operator": true,
|
||||||
|
|
||||||
|
// Do not allow internal modules or namespaces . These are deprecated in favor of ES6 modules.
|
||||||
|
"no-namespace": true,
|
||||||
|
|
||||||
|
// Do not allow parameters to be reassigned. To avoid bugs, developers should instead assign new values to new vars.
|
||||||
|
"no-parameter-reassignment": true,
|
||||||
|
|
||||||
|
// Force the use of ES6-style imports instead of /// <reference path=> imports.
|
||||||
|
"no-reference": true,
|
||||||
|
|
||||||
|
// Do not allow type assertions that do nothing. This is a big warning that the developer may not understand the
|
||||||
|
// code currently being edited (they may be incorrectly handling a different type case that does not exist).
|
||||||
|
"no-unnecessary-type-assertion": true,
|
||||||
|
|
||||||
|
// Disallow nonsensical label usage.
|
||||||
|
"label-position": true,
|
||||||
|
|
||||||
|
// Disallows the (often typo) syntax if (var1 = var2). Replace with if (var2) { var1 = var2 }.
|
||||||
|
"no-conditional-assignment": true,
|
||||||
|
|
||||||
|
// Disallows constructors for primitive types (e.g. new Number('123'), though Number('123') is still allowed).
|
||||||
|
"no-construct": true,
|
||||||
|
|
||||||
|
// Do not allow super() to be called twice in a constructor.
|
||||||
|
"no-duplicate-super": true,
|
||||||
|
|
||||||
|
// Do not allow the same case to appear more than once in a switch block.
|
||||||
|
"no-duplicate-switch-case": true,
|
||||||
|
|
||||||
|
// Do not allow a variable to be declared more than once in the same block. Consider function parameters in this
|
||||||
|
// rule.
|
||||||
|
"no-duplicate-variable": [true, "check-parameters"],
|
||||||
|
|
||||||
|
// Disallows a variable definition in an inner scope from shadowing a variable in an outer scope. Developers should
|
||||||
|
// instead use a separate variable name.
|
||||||
|
"no-shadowed-variable": true,
|
||||||
|
|
||||||
|
// Empty blocks are almost never needed. Allow the one general exception: empty catch blocks.
|
||||||
|
"no-empty": [true, "allow-empty-catch"],
|
||||||
|
|
||||||
|
// Functions must either be handled directly (e.g. with a catch() handler) or returned to another function.
|
||||||
|
// This is a major source of errors in Cloud Functions and the team strongly recommends leaving this rule on.
|
||||||
|
"no-floating-promises": true,
|
||||||
|
|
||||||
|
// Do not allow any imports for modules that are not in package.json. These will almost certainly fail when
|
||||||
|
// deployed.
|
||||||
|
"no-implicit-dependencies": true,
|
||||||
|
|
||||||
|
// The 'this' keyword can only be used inside of classes.
|
||||||
|
"no-invalid-this": true,
|
||||||
|
|
||||||
|
// Do not allow strings to be thrown because they will not include stack traces. Throw Errors instead.
|
||||||
|
"no-string-throw": true,
|
||||||
|
|
||||||
|
// Disallow control flow statements, such as return, continue, break, and throw in finally blocks.
|
||||||
|
"no-unsafe-finally": true,
|
||||||
|
|
||||||
|
// Do not allow variables to be used before they are declared.
|
||||||
|
"no-use-before-declare": true,
|
||||||
|
|
||||||
|
// Expressions must always return a value. Avoids common errors like const myValue = functionReturningVoid();
|
||||||
|
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
|
||||||
|
|
||||||
|
// Disallow duplicate imports in the same file.
|
||||||
|
"no-duplicate-imports": true,
|
||||||
|
|
||||||
|
|
||||||
|
// -- Strong Warnings --
|
||||||
|
// These rules should almost never be needed, but may be included due to legacy code.
|
||||||
|
// They are left as a warning to avoid frustration with blocked deploys when the developer
|
||||||
|
// understand the warning and wants to deploy anyway.
|
||||||
|
|
||||||
|
// Warn when an empty interface is defined. These are generally not useful.
|
||||||
|
"no-empty-interface": {"severity": "warning"},
|
||||||
|
|
||||||
|
// Warn when an import will have side effects.
|
||||||
|
"no-import-side-effect": {"severity": "warning"},
|
||||||
|
|
||||||
|
// Warn when variables are defined with var. Var has subtle meaning that can lead to bugs. Strongly prefer const for
|
||||||
|
// most values and let for values that will change.
|
||||||
|
"no-var-keyword": {"severity": "warning"},
|
||||||
|
|
||||||
|
// Prefer === and !== over == and !=. The latter operators support overloads that are often accidental.
|
||||||
|
"triple-equals": {"severity": "warning"},
|
||||||
|
|
||||||
|
// Warn when using deprecated APIs.
|
||||||
|
"deprecation": {"severity": "warning"},
|
||||||
|
|
||||||
|
// -- Light Warnings --
|
||||||
|
// These rules are intended to help developers use better style. Simpler code has fewer bugs. These would be "info"
|
||||||
|
// if TSLint supported such a level.
|
||||||
|
|
||||||
|
// prefer for( ... of ... ) to an index loop when the index is only used to fetch an object from an array.
|
||||||
|
// (Even better: check out utils like .map if transforming an array!)
|
||||||
|
"prefer-for-of": {"severity": "warning"},
|
||||||
|
|
||||||
|
// Warns if function overloads could be unified into a single function with optional or rest parameters.
|
||||||
|
"unified-signatures": {"severity": "warning"},
|
||||||
|
|
||||||
|
// Prefer const for values that will not change. This better documents code.
|
||||||
|
"prefer-const": {"severity": "warning"},
|
||||||
|
|
||||||
|
// Multi-line object literals and function calls should have a trailing comma. This helps avoid merge conflicts.
|
||||||
|
"trailing-comma": {"severity": "warning"}
|
||||||
|
},
|
||||||
|
|
||||||
|
"defaultSeverity": "error"
|
||||||
|
}
|
30
package-lock.json
generated
30
package-lock.json
generated
@ -140,6 +140,23 @@
|
|||||||
"tslib": "^1.9.0"
|
"tslib": "^1.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@angular/cdk": {
|
||||||
|
"version": "8.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-8.0.1.tgz",
|
||||||
|
"integrity": "sha512-Ul7rVU/rr4qGHs1w24P/6MHEosYp8AHRxBHrp/yJ50eHbHVS31FyfO8gKfNqPc1bnL1YoYYCs0hIBwNDaz8uDg==",
|
||||||
|
"requires": {
|
||||||
|
"parse5": "^5.0.0",
|
||||||
|
"tslib": "^1.7.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"parse5": {
|
||||||
|
"version": "5.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz",
|
||||||
|
"integrity": "sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==",
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"@angular/cli": {
|
"@angular/cli": {
|
||||||
"version": "8.0.1",
|
"version": "8.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@angular/cli/-/cli-8.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/cli/-/cli-8.0.1.tgz",
|
||||||
@ -314,6 +331,14 @@
|
|||||||
"integrity": "sha512-vGk14oWroEo6ycO4cooznx57nn2sASmCQ/sdE8UVwySUKl940TsVzijgaGqapTepFof9sMqN77y2G15eRKQeAQ==",
|
"integrity": "sha512-vGk14oWroEo6ycO4cooznx57nn2sASmCQ/sdE8UVwySUKl940TsVzijgaGqapTepFof9sMqN77y2G15eRKQeAQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"@angular/material": {
|
||||||
|
"version": "8.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@angular/material/-/material-8.0.1.tgz",
|
||||||
|
"integrity": "sha512-BozIS+9yiqFTfXBoZfhFUibY8meDUcv/e+CxhSHyv3vZw9XVTNTbiaX7tX/FX0Ai+1VKnwRTGrKvPKGFSqynCA==",
|
||||||
|
"requires": {
|
||||||
|
"tslib": "^1.7.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@angular/platform-browser": {
|
"@angular/platform-browser": {
|
||||||
"version": "8.0.0",
|
"version": "8.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-8.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-8.0.0.tgz",
|
||||||
@ -4152,6 +4177,11 @@
|
|||||||
"integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
|
"integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"hammerjs": {
|
||||||
|
"version": "2.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/hammerjs/-/hammerjs-2.0.8.tgz",
|
||||||
|
"integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE="
|
||||||
|
},
|
||||||
"handle-thing": {
|
"handle-thing": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.0.tgz",
|
||||||
|
@ -13,13 +13,16 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "~8.0.0",
|
"@angular/animations": "~8.0.0",
|
||||||
|
"@angular/cdk": "^8.0.1",
|
||||||
"@angular/common": "~8.0.0",
|
"@angular/common": "~8.0.0",
|
||||||
"@angular/compiler": "~8.0.0",
|
"@angular/compiler": "~8.0.0",
|
||||||
"@angular/core": "~8.0.0",
|
"@angular/core": "~8.0.0",
|
||||||
"@angular/forms": "~8.0.0",
|
"@angular/forms": "~8.0.0",
|
||||||
|
"@angular/material": "^8.0.1",
|
||||||
"@angular/platform-browser": "~8.0.0",
|
"@angular/platform-browser": "~8.0.0",
|
||||||
"@angular/platform-browser-dynamic": "~8.0.0",
|
"@angular/platform-browser-dynamic": "~8.0.0",
|
||||||
"@angular/router": "~8.0.0",
|
"@angular/router": "~8.0.0",
|
||||||
|
"hammerjs": "^2.0.8",
|
||||||
"rxjs": "~6.4.0",
|
"rxjs": "~6.4.0",
|
||||||
"tslib": "^1.9.0",
|
"tslib": "^1.9.0",
|
||||||
"zone.js": "~0.9.1"
|
"zone.js": "~0.9.1"
|
||||||
|
65
public/index.html
Normal file
65
public/index.html
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>Welcome to Firebase Hosting</title>
|
||||||
|
|
||||||
|
<!-- update the version number as needed -->
|
||||||
|
<script defer src="/__/firebase/6.1.0/firebase-app.js"></script>
|
||||||
|
<!-- include only the Firebase features as you need -->
|
||||||
|
<script defer src="/__/firebase/6.1.0/firebase-auth.js"></script>
|
||||||
|
<script defer src="/__/firebase/6.1.0/firebase-database.js"></script>
|
||||||
|
<script defer src="/__/firebase/6.1.0/firebase-messaging.js"></script>
|
||||||
|
<script defer src="/__/firebase/6.1.0/firebase-storage.js"></script>
|
||||||
|
<!-- initialize the SDK after all desired features are loaded -->
|
||||||
|
<script defer src="/__/firebase/init.js"></script>
|
||||||
|
|
||||||
|
<style media="screen">
|
||||||
|
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
|
||||||
|
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px; border-radius: 3px; }
|
||||||
|
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
|
||||||
|
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
|
||||||
|
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
|
||||||
|
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
|
||||||
|
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
|
||||||
|
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
body, #message { margin-top: 0; background: white; box-shadow: none; }
|
||||||
|
body { border-top: 16px solid #ffa100; }
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="message">
|
||||||
|
<h2>Welcome</h2>
|
||||||
|
<h1>Firebase Hosting Setup Complete</h1>
|
||||||
|
<p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
|
||||||
|
<a target="_blank" href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
|
||||||
|
</div>
|
||||||
|
<p id="load">Firebase SDK Loading…</p>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
|
||||||
|
// // The Firebase SDK is initialized and available here!
|
||||||
|
//
|
||||||
|
// firebase.auth().onAuthStateChanged(user => { });
|
||||||
|
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
|
||||||
|
// firebase.messaging().requestPermission().then(() => { });
|
||||||
|
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
|
||||||
|
//
|
||||||
|
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
|
||||||
|
|
||||||
|
try {
|
||||||
|
let app = firebase.app();
|
||||||
|
let features = ['auth', 'database', 'messaging', 'storage'].filter(feature => typeof app[feature] === 'function');
|
||||||
|
document.getElementById('load').innerHTML = `Firebase SDK loaded with ${features.join(', ')}`;
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
document.getElementById('load').innerHTML = 'Error loading the Firebase SDK, check the console.';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,6 +1,20 @@
|
|||||||
<!--The content below is only a placeholder and can be replaced.-->
|
<!--The content below is only a placeholder and can be replaced.-->
|
||||||
|
|
||||||
<div class="main-container">
|
<div class="main-container {{ (results.length > 0 ? 'top' : '') }}">
|
||||||
|
|
||||||
|
<div *ngIf="displayOverlay" class="overlay">
|
||||||
|
|
||||||
|
<div class="overlay-content">
|
||||||
|
|
||||||
|
<div class="center-container">
|
||||||
|
|
||||||
|
<mat-spinner></mat-spinner>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="center-container">
|
<div class="center-container">
|
||||||
|
|
||||||
@ -8,14 +22,29 @@
|
|||||||
|
|
||||||
<div class="search-bar">
|
<div class="search-bar">
|
||||||
|
|
||||||
<input placeholder="Your Sport Recherche" type="text"/>
|
<form (submit)="search()">
|
||||||
|
|
||||||
|
<input placeholder="Your Sport Recherche" #input (change)="searchInput = input.value"
|
||||||
|
type="text"/>
|
||||||
|
|
||||||
<div class="search-button">
|
<div class="search-button">
|
||||||
|
|
||||||
|
<button type="submit">
|
||||||
<i class="material-icons">search</i>
|
<i class="material-icons">search</i>
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="results.length > 0">
|
||||||
|
|
||||||
|
<div *ngFor="let result of results">
|
||||||
|
{{ result.url }} ({{ result.tfidf }})
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,6 +8,33 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
|
.overlay-content {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.center-container {
|
||||||
|
width: initial;
|
||||||
|
max-width: initial;
|
||||||
|
min-width: initial;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.center-container {
|
.center-container {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -41,6 +68,10 @@
|
|||||||
background: rgba(255, 255, 255, 1);
|
background: rgba(255, 255, 255, 1);
|
||||||
height: 52px;
|
height: 52px;
|
||||||
|
|
||||||
|
form {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
input[type=text] {
|
input[type=text] {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: calc(100% - 30px);
|
width: calc(100% - 30px);
|
||||||
@ -55,6 +86,10 @@
|
|||||||
.search-button {
|
.search-button {
|
||||||
border-left: 1px solid @border-color;
|
border-left: 1px solid @border-color;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
.material-icons {
|
.material-icons {
|
||||||
@ -63,7 +98,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-container.top {
|
||||||
|
align-items: initial;
|
||||||
|
|
||||||
|
.center-container {
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { HttpClient } from '@angular/common/http';
|
||||||
|
import { environment } from '../environments/environment';
|
||||||
|
|
||||||
@Component( {
|
@Component( {
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
@ -6,5 +8,31 @@ import { Component } from '@angular/core';
|
|||||||
styleUrls: [ './app.component.less' ]
|
styleUrls: [ './app.component.less' ]
|
||||||
} )
|
} )
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
title = 'PQ-Man';
|
|
||||||
|
public searchInput = '';
|
||||||
|
public displayOverlay = false;
|
||||||
|
public results: Array<{ url: string, tfidf: string }> = [];
|
||||||
|
|
||||||
|
constructor( private http: HttpClient ) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public search(): void {
|
||||||
|
if ( this.searchInput.length > 0 ) {
|
||||||
|
this.displayOverlay = true;
|
||||||
|
|
||||||
|
this.http.get( environment.baseUrl + this.searchInput ).subscribe( ( data: [{ url: string, tfidf: string }] ) => {
|
||||||
|
this.results = data;
|
||||||
|
this.results.sort( ( f, s ) => {
|
||||||
|
if ( parseFloat( f.tfidf ) > parseFloat( s.tfidf ) ) {
|
||||||
|
return -1;
|
||||||
|
} else if ( parseFloat( f.tfidf ) < parseFloat( s.tfidf ) ) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
} );
|
||||||
|
this.displayOverlay = false;
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,16 +3,30 @@ import { NgModule } from '@angular/core';
|
|||||||
|
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { FullscreenOverlayContainer, OverlayContainer, OverlayModule } from '@angular/cdk/overlay';
|
||||||
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||||
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
|
import { HttpClientModule } from '@angular/common/http';
|
||||||
|
|
||||||
|
|
||||||
@NgModule( {
|
@NgModule( {
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent
|
AppComponent,
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
AppRoutingModule
|
AppRoutingModule,
|
||||||
|
FormsModule,
|
||||||
|
OverlayModule,
|
||||||
|
MatProgressSpinnerModule,
|
||||||
|
HttpClientModule,
|
||||||
|
BrowserAnimationsModule,
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
{ provide: OverlayContainer, useClass: FullscreenOverlayContainer }
|
||||||
],
|
],
|
||||||
providers: [],
|
|
||||||
bootstrap: [ AppComponent ]
|
bootstrap: [ AppComponent ]
|
||||||
} )
|
} )
|
||||||
export class AppModule { }
|
export class AppModule {
|
||||||
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: true
|
production: true,
|
||||||
|
baseUrl: 'http://142.4.212.26:8080/search?s=',
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
// The list of file replacements can be found in `angular.json`.
|
// The list of file replacements can be found in `angular.json`.
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
production: false
|
production: false,
|
||||||
|
baseUrl: 'http://142.4.212.26:8080/search?s=',
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Russo+One&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Russo+One&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import 'hammerjs';
|
||||||
import { enableProdMode } from '@angular/core';
|
import { enableProdMode } from '@angular/core';
|
||||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
/* You can add global styles to this file, and also import other style files */
|
/* You can add global styles to this file, and also import other style files */
|
||||||
|
|
||||||
|
@import '~@angular/cdk/overlay-prebuilt.css';
|
||||||
|
@import '~@angular/material/prebuilt-themes/indigo-pink.css';
|
||||||
|
|
||||||
html {
|
html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -12,3 +15,15 @@ body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app-root {
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nlp-overlay {
|
||||||
|
background-color: rgba( 0, 0, 0, 0.5 );
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body { height: 100%; }
|
||||||
|
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
|
||||||
|
Loading…
Reference in New Issue
Block a user