-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
arikaim
committed
May 13, 2024
1 parent
ed00d94
commit cfe8698
Showing
30 changed files
with
196 additions
and
409 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<div | ||
class="flex h-full mt-32 w-full justify-center"> | ||
<div | ||
class="flex-shrink-0 w-74 h-64 self-center"> | ||
<div class="ui raised card fluid"> | ||
<div class="content"> | ||
<h3 class="ui dividing header"> | ||
{{ title }} | ||
</h3> | ||
<form class="ui form" id="store_login_form" method="post"> | ||
<div class="field"> | ||
<label>{{ user_name.label }}</label> | ||
<div class="ui left icon input"> | ||
<i class="icon user"></i> | ||
<input rule="empty" type="text" name="user_name" id="user_name" {{ user_name.placeholder|attr("placeholder") }}> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<label>{{ password.label }}</label> | ||
<div class="ui left icon right action input"> | ||
<i class="icon lock"></i> | ||
<input rule="empty" type="password" name="password" id="password" {{ password.placeholder|attr("placeholder") }}> | ||
<a class="ui icon basic link button view-password"> | ||
<i class="eye slash outline icon"></i> | ||
</a> | ||
</div> | ||
</div> | ||
{{ component('semantic~form.footer',{ | ||
button_title: buttons.login.title, | ||
button_class: 'button large primary fluid login-button' | ||
}) | ||
}} | ||
</form> | ||
</div> | ||
</div> | ||
<!-- | ||
<div class="ui two mini buttons"> | ||
<a | ||
target="_arikaim_store" | ||
class="ui basic min button " | ||
href="{{ store.getSignupUrl() }}"> | ||
{{ links.create }} | ||
</a> | ||
<a | ||
target="_arikaim_store" | ||
class="ui basic min button" | ||
href="{{ store.getResetPasswordUrl() }}"> | ||
{{ links.forgotten }} | ||
</a> | ||
</div> | ||
--> | ||
</div> | ||
</div> |
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,24 @@ | ||
'use strict'; | ||
|
||
arikaim.component.onLoaded(function() { | ||
arikaim.ui.viewPasswordButton('.view-password','#password'); | ||
arikaim.ui.form.addRules("#store_login_form"); | ||
|
||
arikaim.ui.form.onSubmit('#store_login_form',function() { | ||
arikaim.ui.form.disable('#store_login_form'); | ||
arikaim.ui.disableButton('.login-button'); | ||
|
||
return arikaimStore.login('#store_login_form',function(result) { | ||
arikaim.ui.form.disable('#store_login_form'); | ||
|
||
arikaim.ui.loadComponent({ | ||
mountTo: 'tool_content', | ||
component: 'system:admin.packages.store' | ||
}); | ||
|
||
},function(error) { | ||
arikaim.ui.form.enable('#store_login_form'); | ||
arikaim.ui.enableButton('.login-button'); | ||
}); | ||
}); | ||
}); |
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,20 @@ | ||
{ | ||
"title": "Log in", | ||
"buttons": { | ||
"login": { | ||
"title": "Log in" | ||
} | ||
}, | ||
"user_name":{ | ||
"label": "Username", | ||
"placeholder": "Enter Username" | ||
}, | ||
"password":{ | ||
"placeholder": "Enter Password", | ||
"label": "Password" | ||
}, | ||
"links": { | ||
"forgotten" :"Forgotten password", | ||
"create": "Create Account" | ||
} | ||
} |
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,17 @@ | ||
{% set store = arikaimStore() %} | ||
<div class="ui vertical pointing fluid menu"> | ||
{% if store.isLogged() == false %} | ||
<div class="item"> | ||
{{ items.login }} | ||
</div> | ||
{% else %} | ||
<a class="item store-packages" href="#"> | ||
<i class="box open icon"></i> | ||
{{ items.packages }} | ||
</a> | ||
<a class="item store-logout" href="#"> | ||
<i class="sign out alternate icon"></i> | ||
{{ items.logout }} | ||
</a> | ||
{% endif %} | ||
</div> |
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,22 @@ | ||
'use strict'; | ||
|
||
arikaim.component.onLoaded(function() { | ||
|
||
arikaim.ui.button('.store-packages',function(button) { | ||
return arikaimStore.logout(function(result) { | ||
arikaim.ui.loadComponent({ | ||
mountTo: 'store_packages', | ||
component: 'system:admin.packages.store.view' | ||
}); | ||
}); | ||
}); | ||
|
||
arikaim.ui.button('.store-logout',function(button) { | ||
return arikaimStore.logout(function(result) { | ||
arikaim.ui.loadComponent({ | ||
mountTo: 'tool_content', | ||
component: 'system:admin.packages.store' | ||
}); | ||
}); | ||
}); | ||
}); |
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,6 @@ | ||
{ | ||
"items": { | ||
"logout": "Logout", | ||
"packages": "My Packages" | ||
} | ||
} |
34 changes: 0 additions & 34 deletions
34
components/admin/packages/store/package-message/package-message.html
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
components/admin/packages/store/package-message/package-message.js
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
components/admin/packages/store/package-message/package-message.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
components/admin/packages/store/settings/packages/component.json
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
components/admin/packages/store/settings/packages/packages.html
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
components/admin/packages/store/settings/packages/packages.json
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
components/admin/packages/store/settings/product/product.html
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
components/admin/packages/store/settings/product/product.js
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
components/admin/packages/store/settings/product/product.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.