diff --git a/apps/user/templates/user/edit_gallery.html b/apps/user/templates/user/edit_gallery.html
index 87c33f0c..f459bc50 100644
--- a/apps/user/templates/user/edit_gallery.html
+++ b/apps/user/templates/user/edit_gallery.html
@@ -1,8 +1,15 @@
+{% extends "templates/lilcity/index.html" %}
{% block pre_app_js %}
-window.LIL_STORE.components['block-images'] = '../components/BlockImages';
+
{% endblock pre_app_js %}
{% block content %}
-
+
{% endblock %}
diff --git a/web/src/js/app.js b/web/src/js/app.js
index ab87020c..4c9bcaf9 100644
--- a/web/src/js/app.js
+++ b/web/src/js/app.js
@@ -46,28 +46,33 @@ const components = {
Object.assign(components, window.LIL_STORE.components);
-for(let k in components){
- if(typeof components[k] === 'string'){
- components[k] = await import(components[k]);
- }
-}
+const promises = [];
+
-const app = new Vue({
- el: '#lilcity-vue-app',
- data() {
- return {
- store: window.LIL_STORE,
- }
- },
- mounted(){
- if(this.urlIs('userProfileEdit') || this.urlIs('userBonuses')){
- profileMain(this);
- }
- },
- methods: {
- urlIs(urlPatternName){
- return window.location.pathname.search(this.store.urls[urlPatternName]) > -1;
+(async () => {
+ for(let k in components){
+ if(typeof components[k] === 'string'){
+ components[k] = await import(components[k]);
+ }
+ }
+ const app = new Vue({
+ el: '#lilcity-vue-app',
+ data() {
+ return {
+ store: window.LIL_STORE,
+ }
+ },
+ mounted(){
+ if(this.urlIs('userProfileEdit') || this.urlIs('userBonuses')){
+ profileMain(this);
+ }
},
- },
- components: components
-});
+ methods: {
+ urlIs(urlPatternName){
+ return window.location.pathname.search(this.store.urls[urlPatternName]) > -1;
+ },
+ },
+ components: components
+ });
+})();
+