-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix various version-related issues with cli (close #3706)
- do not quit on server-cli version mismatch, show warning - fix a bug in update-cli command which prevets updates to pre-release versions - if a console template for a particular version is not found, use the latest template
- Loading branch information
Showing
8 changed files
with
125 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<html lang="en-us"> | ||
<head> | ||
<link rel="icon" type="image/png" href="https://graphql-engine-cdn.hasura.io/console/assets/common/img/favicon_green.png" /> | ||
<script> | ||
window.__env = { | ||
apiHost: {{.apiHost}}, | ||
apiPort: "{{.apiPort}}", | ||
cliVersion: {{.cliVersion}}, | ||
dataApiUrl: {{.dataApiUrl}}, | ||
dataApiVersion: {{.dataApiVersion}}, | ||
{{- if .hasAccessKey }} | ||
accessKey: {{.adminSecret}}, | ||
{{ else }} | ||
adminSecret: {{.adminSecret}}, | ||
{{ end -}} | ||
urlPrefix: "/", | ||
consoleMode: "cli", | ||
cliUUID: {{.cliUUID}}, | ||
enableTelemetry: {{.enableTelemetry}}, | ||
assetsPath: "https://graphql-engine-cdn.hasura.io/console/assets", | ||
serverVersion: "{{.serverVersion}}", | ||
}; | ||
</script> | ||
</head> | ||
<body> | ||
<style> | ||
.mainContent { | ||
display: 'none'; | ||
opacity: 0; | ||
transition: opacity .20s linear; | ||
} | ||
.mainContent.show { | ||
display: 'block'; | ||
opacity: 1; | ||
transition: opacity .20s linear; | ||
} | ||
</style> | ||
|
||
<div id="loading"> | ||
<div class="page-loading" style=" | ||
min-height: 100vh; | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
font-family: sans-serif; | ||
justify-content: center; | ||
"> | ||
<span class="" style=" | ||
font-size: 2em; | ||
margin-top: -3em; | ||
color: #848484; | ||
"> | ||
Loading... | ||
</span> | ||
</div> | ||
</div> | ||
<div id="content" class="mainContent"></div> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/> | ||
|
||
{{ if .cliStaticDir }} | ||
|
||
<link rel="stylesheet" href="/static/main.css" charset="UTF-8"/> | ||
<script src="/static/vendor.js" charset="UTF-8"></script> | ||
<script src="/static/main.js" charset="UTF-8"></script> | ||
|
||
{{ else }} | ||
|
||
<link rel="stylesheet" href="https://graphql-engine-cdn.hasura.io/console/assets/{{.assetsVersion}}/main.css.gz" charset="UTF-8"/> | ||
<script src="https://graphql-engine-cdn.hasura.io/console/assets/{{.assetsVersion}}/vendor.js.gz" charset="UTF-8"></script> | ||
<script src="https://graphql-engine-cdn.hasura.io/console/assets/{{.assetsVersion}}/main.js.gz" charset="UTF-8"></script> | ||
|
||
{{ end }} | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters