Remove some old code
This commit is contained in:
parent
d342cc4358
commit
3447739da9
13 changed files with 7 additions and 894 deletions
|
@ -203,26 +203,6 @@ return [
|
|||
'console.account.section.security.recent-activity.location' => 'Location',
|
||||
'console.account.section.security.recent-activity.ip' => 'IP',
|
||||
|
||||
'console.account.section.payment-methods.title' => 'Payment Methods',
|
||||
'console.account.section.payment-methods.disclaimer' => 'All data is stored securely using',
|
||||
'console.account.section.payment-methods.provider' => 'PayPal',
|
||||
'console.account.section.payment-methods.action' => 'Add Payment Method',
|
||||
'console.account.section.payment-methods.remove' => 'Remove',
|
||||
'console.account.section.payment-methods.success' => 'Payment Method Removed Successfully',
|
||||
'console.account.section.payment-methods.failure' => 'Failed to Remove Payment Method',
|
||||
'console.account.section.payment-methods.empty.title' => 'No Payment Methods Found',
|
||||
'console.account.section.payment-methods.empty.subtitle' => 'You haven\'t attached any payment method to your account yet.',
|
||||
|
||||
'console.account.section.invoices.title' => 'Invoices',
|
||||
'console.account.section.invoices.description' => 'Description',
|
||||
'console.account.section.invoices.for' => 'Invoice for',
|
||||
'console.account.section.invoices.status' => 'Status',
|
||||
'console.account.section.invoices.amount' => 'Amount',
|
||||
'console.account.section.invoices.view' => 'View',
|
||||
'console.account.section.invoices.download' => 'Download',
|
||||
'console.account.section.invoices.empty.title' => 'No Invoices Found',
|
||||
'console.account.section.invoices.empty.subtitle' => 'You probably haven\'t subscribed to any plan or billing date hasn\'t arrived yet.',
|
||||
|
||||
'console.notifications.title' => 'Notifications',
|
||||
|
||||
'console.settings.title' => 'Settings',
|
||||
|
|
|
@ -31,15 +31,6 @@ const ROLE_ALL = '*';
|
|||
* files.write
|
||||
* files.scan
|
||||
*
|
||||
* billing.currencies.read
|
||||
* billing.vaults.read
|
||||
* billing.vaults.write
|
||||
* billing.plans.read
|
||||
* billing.plans.write
|
||||
* billing.subscriptions.read
|
||||
* billing.subscriptions.write
|
||||
* billing.invoices.read
|
||||
*
|
||||
* health.read
|
||||
*
|
||||
* locale.read
|
||||
|
@ -63,13 +54,6 @@ $logged = [
|
|||
'documents.write',
|
||||
'files.read',
|
||||
'files.write',
|
||||
'billing.currencies.read',
|
||||
'billing.vaults.read',
|
||||
'billing.vaults.write',
|
||||
'billing.plans.read',
|
||||
'billing.subscriptions.read',
|
||||
'billing.subscriptions.write',
|
||||
'billing.invoices.read',
|
||||
'projects.read',
|
||||
'projects.write',
|
||||
'locale.read',
|
||||
|
@ -82,7 +66,6 @@ $admins = [
|
|||
'users.write',
|
||||
'collections.read',
|
||||
'collections.write',
|
||||
'billing.plans.write',
|
||||
];
|
||||
|
||||
return [
|
||||
|
@ -97,7 +80,6 @@ return [
|
|||
'locale.read',
|
||||
'avatars.read',
|
||||
'health.read',
|
||||
'billing.currencies.read',
|
||||
]
|
||||
],
|
||||
ROLE_MEMBER => [
|
||||
|
|
|
@ -28,18 +28,6 @@ $scopes = [ // TODO sync with console UI list
|
|||
'documents.write',
|
||||
'files.read',
|
||||
'files.write',
|
||||
|
||||
//'billing.vaults.read',
|
||||
//'billing.vaults.write',
|
||||
//'billing.plans.read',
|
||||
//'billing.plans.write',
|
||||
//'billing.subscriptions.read',
|
||||
//'billing.subscriptions.write',
|
||||
//'billing.invoices.read',
|
||||
//'projects.read',
|
||||
//'projects.write',
|
||||
//'locale.read',
|
||||
//'health.read',
|
||||
];
|
||||
|
||||
$utopia->get('/v1/projects')
|
||||
|
|
|
@ -129,7 +129,7 @@ use Utopia\Locale\Locale;
|
|||
</div>
|
||||
|
||||
<div class="col span-3 text-center">
|
||||
<img src="" data-ls-attrs="src={{account|gravatar}}" height="150" alt="User Avatar" class="avatar huge huge margin-bottom-small" />
|
||||
<img src="" data-ls-attrs="src={{account|gravatar}}" data-size="200" height="150" alt="User Avatar" class="avatar huge huge margin-bottom-small" />
|
||||
|
||||
<br />
|
||||
|
||||
|
|
|
@ -136,9 +136,6 @@
|
|||
<form data-setup>
|
||||
<p class="note">Appwrite project is set of services and resources shared across different platforms like Web, iOS or Android.</p>
|
||||
|
||||
<input type="hidden" class="full-width" name="plan" value="" />
|
||||
<input type="hidden" class="full-width" name="vault" value="" />
|
||||
|
||||
<label>Name</label>
|
||||
<input type="text" class="full-width" name="name" required autocomplete="off" />
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ use Utopia\Locale\Locale;
|
|||
<div class="box margin-bottom">
|
||||
<ul data-ls-loop="project-collections.collections" data-ls-as="collection" class="list">
|
||||
<li class="clear">
|
||||
<img src="" data-ls-attrs="src={{collection.name|gravatar}}" alt="Collection Avatar" class="avatar margin-end pull-start" />
|
||||
<img src="" data-ls-attrs="src={{collection.name|gravatar}}" data-size="200" alt="Collection Avatar" class="avatar margin-end pull-start" />
|
||||
|
||||
<a data-ls-bind="{{collection.name}}" data-ls-attrs="href=/console/database/collection?project={{console-project.$uid}}&id={{collection.$uid}}"></a>
|
||||
<p class=" note margin-bottom-no margin-top-small"><span data-ls-bind="{{collection.rules.length}}"></span> fields</p>
|
||||
|
|
|
@ -6,7 +6,6 @@ $graph = $this->getParam('graph', false);
|
|||
<div class="zone xl margin-bottom-large margin-top-small">
|
||||
<h1 class="margin-bottom-small">
|
||||
<span class="title" data-ls-bind="{{console-project.name}}"> </span>
|
||||
<!--<span class="tag focus" style="vertical-align: middle">Beta Plan</span>-->
|
||||
</h1>
|
||||
|
||||
<ul class="margin-top margin-bottom-large clear">
|
||||
|
|
|
@ -13,17 +13,6 @@ $scopes = [ // TODO sync with project list
|
|||
'documents.write',
|
||||
'files.read',
|
||||
'files.write',
|
||||
//'billing.vaults.read',
|
||||
//'billing.vaults.write',
|
||||
//'billing.plans.read',
|
||||
//'billing.plans.write',
|
||||
//'billing.subscriptions.read',
|
||||
//'billing.subscriptions.write',
|
||||
//'billing.invoices.read',
|
||||
//'projects.read',
|
||||
//'projects.write',
|
||||
//'locale.read',
|
||||
//'health.read',
|
||||
];
|
||||
?>
|
||||
<div class="cover margin-bottom-large">
|
||||
|
|
|
@ -204,7 +204,7 @@ use Utopia\Locale\Locale;
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<img src="" data-ls-attrs="src={{member|gravatar}}" alt="User Avatar" class="avatar pull-start margin-end" />
|
||||
<img src="" data-ls-attrs="src={{member|gravatar}}" data-size="200" alt="User Avatar" class="avatar pull-start margin-end" />
|
||||
|
||||
<div class="margin-bottom-small">
|
||||
<span data-ls-bind="{{member.name}}"></span> <span class="tag" data-ls-bind="{{member.roles.0|id2role}}"></span> <span data-ls-if="false === {{member.confirm}}" class="tag red" style="display: none;"><?php echo Locale::getText('console.settings.section.members.labels.pending'); ?></span>
|
||||
|
|
2
public/dist/scripts/app-all.js
vendored
2
public/dist/scripts/app-all.js
vendored
|
@ -2443,7 +2443,7 @@ output[output.length]=obj['$uid'];});onComplete(message);render(output);},functi
|
|||
output=(multiple)?JSON.parse(element.value):[element.value];render(output);});upload.addEventListener('keypress',function(){input.click();});element.parentNode.insertBefore(wrapper,element);wrapper.appendChild(preview);wrapper.appendChild(progress);wrapper.appendChild(upload);if(multiple){wrapper.appendChild(count);}
|
||||
upload.appendChild(input);render(output);}});})(window);(function(window){"use strict";window.ls.view.add({selector:'data-general-oauth',repeat:false,controller:function(element,env,expression){let provider=expression.parse(element.dataset['authOauth']||'');let success=expression.parse(element.dataset['success']||'');let failure=expression.parse(element.dataset['failure']||'');element.href=env.API+'/oauth/'+provider+'?project='+env.PROJECT
|
||||
+'&success='+encodeURIComponent(success)
|
||||
+'&failure='+encodeURIComponent(failure);}});})(window);(function(window){window.ls.container.get('view').add({'selector':'data-page-title','repeat':true,'controller':function(element,document,expression){document.title=expression.parse(element.getAttribute('data-page-title'))||document.title;}});})(window);(function(window){window.ls.container.get('view').add({selector:'data-setup',controller:function(element,console,form){element.addEventListener('submit',function(event){event.preventDefault();let formData=form.toJson(element);delete formData.vault;delete formData.plan;formData['name']=formData['name']||(element.dataset['defaultName']||'');console.teams.create(formData['name']||'').then(function(data){let team=JSON.parse(data)['$uid'];formData=JSON.parse(JSON.stringify(formData).replace(new RegExp('{{teamId}}','g'),team));console.projects.create(formData['name'],team).then(function(data){let project=JSON.parse(data);window.location.href='/console?project='+project['$uid'];},function(){throw new Error('Failed to setup project');});},function(){throw new Error('Setup failed creating project team');});})}});})(window);(function(window){window.ls.container.get('view').add({selector:'data-switch',controller:function(element,router,document){let debug=(element.dataset['debug']);let project=router.params.project||null;if(project){if(debug){console.log('project-load-start-init');}
|
||||
+'&failure='+encodeURIComponent(failure);}});})(window);(function(window){window.ls.container.get('view').add({'selector':'data-page-title','repeat':true,'controller':function(element,document,expression){document.title=expression.parse(element.getAttribute('data-page-title'))||document.title;}});})(window);(function(window){window.ls.container.get('view').add({selector:'data-setup',controller:function(element,console,form){element.addEventListener('submit',function(event){event.preventDefault();let formData=form.toJson(element);formData['name']=formData['name']||(element.dataset['defaultName']||'');console.teams.createTeam(formData['name']||'').then(function(data){let team=JSON.parse(data)['$uid'];formData=JSON.parse(JSON.stringify(formData).replace(new RegExp('{{teamId}}','g'),team));console.projects.createProject(formData['name'],team).then(function(data){let project=JSON.parse(data);window.location.href='/console?project='+project['$uid'];},function(){throw new Error('Failed to setup project');});},function(){throw new Error('Setup failed creating project team');});})}});})(window);(function(window){window.ls.container.get('view').add({selector:'data-switch',controller:function(element,router,document){let debug=(element.dataset['debug']);let project=router.params.project||null;if(project){if(debug){console.log('project-load-start-init');}
|
||||
document.dispatchEvent(new CustomEvent('project-load'));}
|
||||
document.addEventListener('state-changed',function(){if(router.params.project&&project!==router.params.project){if(debug){console.log('project-load-init');}
|
||||
document.dispatchEvent(new CustomEvent('project-load'));project=router.params.project;}});element.addEventListener('change',function(){if(debug){console.log('change init',element.value);}
|
||||
|
|
2
public/dist/scripts/app.js
vendored
2
public/dist/scripts/app.js
vendored
|
@ -350,7 +350,7 @@ output[output.length]=obj['$uid'];});onComplete(message);render(output);},functi
|
|||
output=(multiple)?JSON.parse(element.value):[element.value];render(output);});upload.addEventListener('keypress',function(){input.click();});element.parentNode.insertBefore(wrapper,element);wrapper.appendChild(preview);wrapper.appendChild(progress);wrapper.appendChild(upload);if(multiple){wrapper.appendChild(count);}
|
||||
upload.appendChild(input);render(output);}});})(window);(function(window){"use strict";window.ls.view.add({selector:'data-general-oauth',repeat:false,controller:function(element,env,expression){let provider=expression.parse(element.dataset['authOauth']||'');let success=expression.parse(element.dataset['success']||'');let failure=expression.parse(element.dataset['failure']||'');element.href=env.API+'/oauth/'+provider+'?project='+env.PROJECT
|
||||
+'&success='+encodeURIComponent(success)
|
||||
+'&failure='+encodeURIComponent(failure);}});})(window);(function(window){window.ls.container.get('view').add({'selector':'data-page-title','repeat':true,'controller':function(element,document,expression){document.title=expression.parse(element.getAttribute('data-page-title'))||document.title;}});})(window);(function(window){window.ls.container.get('view').add({selector:'data-setup',controller:function(element,console,form){element.addEventListener('submit',function(event){event.preventDefault();let formData=form.toJson(element);delete formData.vault;delete formData.plan;formData['name']=formData['name']||(element.dataset['defaultName']||'');console.teams.create(formData['name']||'').then(function(data){let team=JSON.parse(data)['$uid'];formData=JSON.parse(JSON.stringify(formData).replace(new RegExp('{{teamId}}','g'),team));console.projects.create(formData['name'],team).then(function(data){let project=JSON.parse(data);window.location.href='/console?project='+project['$uid'];},function(){throw new Error('Failed to setup project');});},function(){throw new Error('Setup failed creating project team');});})}});})(window);(function(window){window.ls.container.get('view').add({selector:'data-switch',controller:function(element,router,document){let debug=(element.dataset['debug']);let project=router.params.project||null;if(project){if(debug){console.log('project-load-start-init');}
|
||||
+'&failure='+encodeURIComponent(failure);}});})(window);(function(window){window.ls.container.get('view').add({'selector':'data-page-title','repeat':true,'controller':function(element,document,expression){document.title=expression.parse(element.getAttribute('data-page-title'))||document.title;}});})(window);(function(window){window.ls.container.get('view').add({selector:'data-setup',controller:function(element,console,form){element.addEventListener('submit',function(event){event.preventDefault();let formData=form.toJson(element);formData['name']=formData['name']||(element.dataset['defaultName']||'');console.teams.createTeam(formData['name']||'').then(function(data){let team=JSON.parse(data)['$uid'];formData=JSON.parse(JSON.stringify(formData).replace(new RegExp('{{teamId}}','g'),team));console.projects.createProject(formData['name'],team).then(function(data){let project=JSON.parse(data);window.location.href='/console?project='+project['$uid'];},function(){throw new Error('Failed to setup project');});},function(){throw new Error('Setup failed creating project team');});})}});})(window);(function(window){window.ls.container.get('view').add({selector:'data-switch',controller:function(element,router,document){let debug=(element.dataset['debug']);let project=router.params.project||null;if(project){if(debug){console.log('project-load-start-init');}
|
||||
document.dispatchEvent(new CustomEvent('project-load'));}
|
||||
document.addEventListener('state-changed',function(){if(router.params.project&&project!==router.params.project){if(debug){console.log('project-load-init');}
|
||||
document.dispatchEvent(new CustomEvent('project-load'));project=router.params.project;}});element.addEventListener('change',function(){if(debug){console.log('change init',element.value);}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,18 +7,15 @@
|
|||
|
||||
let formData = form.toJson(element);
|
||||
|
||||
delete formData.vault;
|
||||
delete formData.plan;
|
||||
|
||||
formData['name'] = formData['name'] || (element.dataset['defaultName'] || '');
|
||||
|
||||
console.teams.create(formData['name'] || '')
|
||||
console.teams.createTeam(formData['name'] || '')
|
||||
.then(function (data) {
|
||||
let team = JSON.parse(data)['$uid'];
|
||||
|
||||
formData = JSON.parse(JSON.stringify(formData).replace(new RegExp('{{teamId}}', 'g'), team)); //convert to JSON string
|
||||
|
||||
console.projects.create(formData['name'], team)
|
||||
console.projects.createProject(formData['name'], team)
|
||||
.then(function (data) {
|
||||
let project= JSON.parse(data);
|
||||
|
||||
|
|
Loading…
Reference in a new issue