Свободное общение | CMS для соц сети
Тема закрыта by
tiqix
Причина: стронг рулит
Причина: стронг рулит
Написать свою :)
где там Vue.js? на php + mysqli написан
codecanyon - colibrism
про Vue.js не слова
Server requirements
PHP 5.5 or Higher. (We strongly recommend using the latest PHP version as well as MySQL server)
MySQLi
GD Library
MBstring
cURL
PHP Zip Module
про Vue.js не слова
Server requirements
PHP 5.5 or Higher. (We strongly recommend using the latest PHP version as well as MySQL server)
MySQLi
GD Library
MBstring
cURL
PHP Zip Module
codecanyon - colibrism
про Vue.js не слова
Server requirements
PHP 5.5 or Higher. (We strongly recommend using the latest PHP version as well as MySQL server)
MySQLi
GD Library
MBstring
cURL
PHP Zip Module
javascript
new Vue({ el: "#vue-main-search-app", data: { searching: false, search_query: "", advanced_search: false, search_result: false }, computed: { search_page_url: function() { if (this.search_query.length > 2) { var search_htags_url = "https://live.colibrism.ru/search/htags?q={0}"; var search_users_url = "https://live.colibrism.ru/search/people?q={0}"; this.advanced_search = true; if (this.search_query.charAt(0) == '#') { return search_htags_url.format(this.search_query.replace('#','')); } else { return search_users_url.format(this.search_query); } } else { this.advanced_search = false; return "javascript:void(0);"; } }, query_type: function() { if (this.search_query.charAt(0) == '#') { return 'htags'; } else { return 'users'; } } }, methods: { search_onsubmit: function(e = false) { e.preventDefault(); this.search(); }, search: function() { if (this.search_query.length > 2) { var _app_ = this; delay(function() { $.ajax({ url: 'https://live.colibrism.ru/native_api/main/search', type: 'GET', dataType: 'json', data: { query: _app_.search_query.replace('#',''), type: _app_.query_type }, beforeSend: function() { _app_.searching = true; } }).done(function(data) { if (data.status == 200) { _app_.search_result = true; $(_app_.$el).find('[data-an="result"]').html($(data.html)); } else { $(_app_.$el).find('[data-an="result"]').empty(''); _app_.search_result = false; } }).always(function() { _app_.searching = false; }); }, 800); } }, cancel: function() { var _app_ = this; _app_.searching = false; _app_.search_query = ""; _app_.advanced_search = false; _app_.search_result = false; $(_app_.$el).find('[data-an="result"]').empty(''); } } });
фигня ваш colibrism
пост 11 мне даже больше нрав
пост 11 мне даже больше нрав
самописька в данном случае лучший вариант)) На крайнях стронг
Ну ты как бы сам на свой вопрос ответил в своём же, первом посте=)
javascript
new Vue({ el: "#vue-main-search-app", data: { searching: false, search_query: "", advanced_search: false, search_result: false }, computed: { search_page_url: function() { if (this.search_query.length > 2) { var search_htags_url = "https://live.colibrism.ru/search/htags?q={0}"; var search_users_url = "https://live.colibrism.ru/search/people?q={0}"; this.advanced_search = true; if (this.search_query.charAt(0) == '#') { return search_htags_url.format(this.search_query.replace('#','')); } else { return search_users_url.format(this.search_query); } } else { this.advanced_search = false; return "javascript:void(0);"; } }, query_type: function() { if (this.search_query.charAt(0) == '#') { return 'htags'; } else { return 'users'; } } }, methods: { search_onsubmit: function(e = false) { e.preventDefault(); this.search(); }, search: function() { if (this.search_query.length > 2) { var _app_ = this; delay(function() { $.ajax({ url: 'https://live.colibrism.ru/native_api/main/search', type: 'GET', dataType: 'json', data: { query: _app_.search_query.replace('#',''), type: _app_.query_type }, beforeSend: function() { _app_.searching = true; } }).done(function(data) { if (data.status == 200) { _app_.search_result = true; $(_app_.$el).find('[data-an="result"]').html($(data.html)); } else { $(_app_.$el).find('[data-an="result"]').empty(''); _app_.search_result = false; } }).always(function() { _app_.searching = false; }); }, 800); } }, cancel: function() { var _app_ = this; _app_.searching = false; _app_.search_query = ""; _app_.advanced_search = false; _app_.search_result = false; $(_app_.$el).find('[data-an="result"]').empty(''); } } }); это же не значит что он весь написан на Vue. могу закинуть последнюю версию сам посмотришь код
Стр.: 1, 2