mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Added setup type var
This commit is contained in:
1 parent
92060d0b89
commit
820fc656cc
7 files changed
+16
-16
No files matched your search
@@ -23,8 +23,7 @@ $layout
|
||||
->setParam('protocol', $request->getServer('REQUEST_SCHEME', 'https'))
|
||||
->setParam('domain', $domain)
|
||||
->setParam('home', $request->getServer('_APP_HOME'))
|
||||
->setParam('api', $request->getServer('_APP_APPWRITE_HOST_CLIENT'))
|
||||
->setParam('project', $request->getServer('_APP_APPWRITE_ID'))
|
||||
->setParam('setup', $request->getServer('_APP_SETUP'))
|
||||
->setParam('class', 'unknown')
|
||||
->setParam('icon', '/images/favicon.png')
|
||||
->setParam('roles', $roles)
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
<div class="list pull-start project-only">
|
||||
<label>
|
||||
<select
|
||||
data-analytics-event="change"
|
||||
data-analytics-category="console/header"
|
||||
data-analytics-label="Project Switch"
|
||||
data-xanalytics-event="change"
|
||||
data-xanalytics-category="console/header"
|
||||
data-xanalytics-label="Project Switch"
|
||||
data-switch
|
||||
data-ls-bind="{{router.params.project}}"
|
||||
data-unsync="1"
|
||||
|
||||
@@ -4,8 +4,6 @@ use Utopia\Locale\Locale;
|
||||
|
||||
$protocol = $this->getParam('protocol', '');
|
||||
$domain = $this->getParam('domain', '');
|
||||
$api = $this->getParam('api', '');
|
||||
$project = $this->getParam('project', 'console');
|
||||
$platforms = $this->getParam('platforms', []);
|
||||
$version = $this->getParam('version', '0.0.0');
|
||||
$isDev = $this->getParam('isDev', false);
|
||||
@@ -35,7 +33,7 @@ if(!empty($platforms)) {
|
||||
<link rel="icon" type="image/png" href="<?php echo $this->escape($this->getParam('icon', '')); ?>?v=1" />
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:100,300,400,500,600" rel="stylesheet">
|
||||
<link rel="apple-touch-icon" href="/images/apple.png">
|
||||
<link rel="preconnect" href="<?php echo $api; ?>" />
|
||||
<!-- <link rel="preconnect" href="" /> -->
|
||||
<?php if (!empty($canonical)): ?>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php endif; ?>
|
||||
@@ -67,8 +65,9 @@ if(!empty($platforms)) {
|
||||
PROTOCOL: '<?php echo $protocol; ?>',
|
||||
DOMAIN: '<?php echo $domain; ?>',
|
||||
HOME: '<?php echo $this->escape($this->getParam('home')); ?>',
|
||||
API: '<?php echo $api; ?>/v1',
|
||||
PROJECT: '<?php echo $project; ?>',
|
||||
SETUP: '<?php echo $this->escape($this->getParam('setup')); ?>',
|
||||
API: '/v1',
|
||||
PROJECT: 'console',
|
||||
PLATFORMS: <?php echo json_encode($platforms); ?>,
|
||||
LOCALE: '<?php echo $this->escape(Locale::getText('settings.locale')); ?>',
|
||||
PREFIX: '<?php echo $this->escape($this->getParam('prefix')); ?>',
|
||||
|
||||
Reference in new issue
Block a user