Skip to content

Commit

Permalink
test embedded fe files
Browse files Browse the repository at this point in the history
  • Loading branch information
allthingsclowd committed Sep 8, 2019
1 parent 5d4c3fb commit 4d47b93
Show file tree
Hide file tree
Showing 15 changed files with 2,758 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func main() {
r.HandleFunc("/crash", crashHandler).Methods("POST")
r.HandleFunc("/crash", optionsHandler).Methods("OPTIONS")
http.Handle("/", r)
http.ListenAndServe(portDetail.String(), r)
http.ListenAndServe(portDetail.String(), http.FileServer(http.Dir("wpc-fe/.")))

}

Expand Down
45 changes: 45 additions & 0 deletions wpc-fe/3rdpartylicenses.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[email protected]
MIT
Copyright (c) 2014-2019 Denis Pushkarev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

[email protected]
MIT
The MIT License

Copyright (c) 2016-2018 Google, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Binary file added wpc-fe/assets/HashiCorp_Icon_Black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions wpc-fe/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This file will be run when the index.html is loaded and read in the environment variables if present
// otherwise it will setup some defaults
// Source for this work : https://www.jvandemo.com/how-to-use-environment-variables-to-configure-your-angular-application-without-a-rebuild/

(function (window) {
window.__env = window.__env || {};

// API url
window.__env.apiUrl = 'dev.your-api.com';

window.__env.envFileLoaded = true;

}(this));
Binary file added wpc-fe/favicon.ico
Binary file not shown.
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions wpc-fe/fontawesome-webfont.912ec66d7572ff821749.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions wpc-fe/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<!-- Load environment variables -->
<script src="env.js"></script>
<meta charset="utf-8">
<title>WpcFe</title>
<base href="/">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="styles.7e3af37e8492932e3a6c.css"></head>
<body>
<app-root></app-root>
<script type="text/javascript" src="runtime.06daa30a2963fa413676.js"></script><script type="text/javascript" src="polyfills.f4b78b65941f8063fd57.js"></script><script type="text/javascript" src="main.1bfe9f2d3f1caa752388.js"></script></body>
</html>
1 change: 1 addition & 0 deletions wpc-fe/main.1bfe9f2d3f1caa752388.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions wpc-fe/polyfills.f4b78b65941f8063fd57.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions wpc-fe/runtime.06daa30a2963fa413676.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions wpc-fe/styles.7e3af37e8492932e3a6c.css

Large diffs are not rendered by default.

0 comments on commit 4d47b93

Please sign in to comment.