Skip to content

Commit

Permalink
Many updates
Browse files Browse the repository at this point in the history
Hello there! I made quite a few changes:
1. Redesigned the menu generation system. If earlier it was formed by parsing folders with configs every time the page loads, now it only adds data to the json file. Data is output from it after.
2. I made categories of services and distributed them according to them, so that there were not too many items in the menu.
3. Select spoilers in the menu if the service belongs to one of the categories.

Result: 9-10 points instead of nineteen.

I like. And you?

https://dpos.space, https://dpos.space/viz, https://dpos.space/golos

Also in golos/profiles, I updated the list of pages: now they are displayed as a drop-down list, and not as a huge table in one row (horizontally).

If you like it, I will also do it for Viz.
Example: https://dpos.space/golos/profiles/denis-skripnik

***

Здравствуйте! Я сделал довольно много изменений:
1. Переделал систему формирования меню. Если раньше оно формировалось путём парсинга папок с конфигами при каждой загрузке страницы, сейчас происходит лишь добавление данных в json файл. Из него и выводятся данные после.
2. Сделал категории сервисов и распределил по ним их, чтоб не было слишком много пунктов в меню.
3. Сделал в меню спойлеры, если сервис относится к одной из категорий.

Результат: 9-10 пунктов вместо девятнадцати.

Мне нравится. А вам?

https://dpos.space, https://dpos.space/viz, https://dpos.space/golos

Также в golos/profiles обновил список страниц: теперь они отображаются в виде выпадающего списка, а не в виде громадной таблицы в одну строку (горизонтально).

Если понравится, сделаю также и для Viz.
Пример: https://dpos.space/golos/profiles/denis-skripnik
  • Loading branch information
denis-skripnik committed Dec 1, 2020
1 parent 4564a0b commit 2cf8638
Show file tree
Hide file tree
Showing 97 changed files with 322 additions and 130 deletions.
5 changes: 0 additions & 5 deletions blockchains/cyber/apps/account-data/config.json

This file was deleted.

11 changes: 0 additions & 11 deletions blockchains/cyber/apps/account-data/content.php

This file was deleted.

2 changes: 0 additions & 2 deletions blockchains/cyber/apps/account-data/index.php

This file was deleted.

4 changes: 0 additions & 4 deletions blockchains/cyber/apps/account-data/js/app.js

This file was deleted.

3 changes: 2 additions & 1 deletion blockchains/cyber/apps/accounts/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Мои аккаунты в Cyber",
"description": "Сервис авторизации в блокчейне Cyber. Сохранение нескольких аккаунтов и выбор из них текущего.",
"in_menu": "Аккаунты"
"in_menu": "Аккаунты",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/cyber/apps/explorer/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Блок-эксплорер для Cyber",
"description": "block explorer (просмотр блоков) в Cyber",
"in_menu": "Блок-эксплорер"
"in_menu": "Блок-эксплорер",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/cyber/apps/ipfs/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "IPFS для Cyber",
"description": "Загрузка данных в IPFS и их получение, для Cyber",
"in_menu": "IPFS"
"in_menu": "IPFS",
"category": "tools"
}
3 changes: 2 additions & 1 deletion blockchains/cyber/apps/linker/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Создатель ссылок в Cyber",
"description": "Сервис Линкер - создаёт ссылки из 2 ipfs хешей, для Cyber.",
"in_menu": "Линкер"
"in_menu": "Линкер",
"category": "tools"
}
3 changes: 2 additions & 1 deletion blockchains/cyber/apps/profiles/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Просмотр профилей",
"description": "Просмотрщик профилей в блокчейне Cyber",
"in_menu": "Профили"
"in_menu": "Профили",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/cyber/apps/randomblockchain/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Генератор случайных чисел randomblockchain для Cyber",
"description": "Генератор случайных чисел с использованием блоков блокчейна Cyber",
"in_menu": "ГСЧ"
"in_menu": "ГСЧ",
"category": "tools"
}
3 changes: 2 additions & 1 deletion blockchains/cyber/apps/validators/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Валидаторы Cyber",
"description": "Список валидаторов Cyber",
"in_menu": "Валидаторы"
"in_menu": "Валидаторы",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/cyber/apps/wallet/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Кошелёк",
"description": "Кошелёк для Cyber: просмотр баланса и перевод средств.",
"in_menu": "Кошелёк"
"in_menu": "Кошелёк",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/accounts/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Мои аккаунты в Golos",
"description": "Сервис авторизации в блокчейне Golos. Сохранение нескольких аккаунтов и выбор из них текущего.",
"in_menu": "Аккаунты"
"in_menu": "Аккаунты",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/activities/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Рейтинг активности за сутки",
"description": "Страница с рейтингом активности пользователей Голоса за сутки",
"in_menu": "Активность за сутки"
"in_menu": "Активность за сутки",
"category": "reytings"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/backup/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Бекап постов в Golos",
"description": "Резервное копирование постов в Golos.",
"in_menu": "Бекап постов"
"in_menu": "Бекап постов",
"category": "tools"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/calc/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Калькулятор для блокчейна Golos",
"description": "Рассчёт стоимости апвота, GESTS в СГ и другие параметры блокчейна Golos.",
"in_menu": "Блокчейн-калькулятор"
"in_menu": "Блокчейн-калькулятор",
"category": "tools"
}
7 changes: 5 additions & 2 deletions blockchains/golos/apps/calc/js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$(document).ready(function(){
$("#result_power").click(function(){
var steem_power = document.getElementById('sp').value;
steem_power = steem_power.replace(/\s/g, '');
var vote_power = document.getElementById('vp').value;
var vote_weight = document.getElementById('vote_weight').value
$("#let1").load("/blockchains/golos/apps/calc/ajax.php","type=result_power&sp=" + steem_power + "&charge=" + vote_power + "&vote_weight=" + vote_weight, function(result, status) {
Expand All @@ -12,7 +13,8 @@ var vote_power = document.getElementById('vp').value;

$("#result_vesting").click(function(){
var all_sp = document.getElementById('all_sp').value
$("#let3").load("/blockchains/golos/apps/calc/ajax.php","type=result_vesting&sp-tec=" + all_sp, function(result, status) {
all_sp = all_sp.replace(/\s/g, '');
$("#let3").load("/blockchains/golos/apps/calc/ajax.php","type=result_vesting&sp-tec=" + all_sp, function(result, status) {
if (status === 'error') {
console.log(result);
}
Expand All @@ -21,7 +23,8 @@ var all_sp = document.getElementById('all_sp').value

$("#result_vests").click(function(){
var sp_tec = document.getElementById('sp_tec').value
$("#let2").load("/blockchains/golos/apps/calc/ajax.php","type=result_vests&sp-tec=" + sp_tec, function(result, status) {
sp_tec = sp_tec.replace(/\s/g, '');
$("#let2").load("/blockchains/golos/apps/calc/ajax.php","type=result_vests&sp-tec=" + sp_tec, function(result, status) {
if (status === 'error') {
console.log(result);
}
Expand Down
3 changes: 2 additions & 1 deletion blockchains/golos/apps/donates/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Топ донатов Голоса",
"description": "Топ донатов в блокчейне Golos",
"in_menu": "Топы донатов"
"in_menu": "Топы донатов",
"category": "reytings"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/explorer/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Блок-эксплорер для Golos",
"description": "block explorer (просмотр блоков) в Golos",
"in_menu": "Блок-эксплорер"
"in_menu": "Блок-эксплорер",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/help/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Справка по dpos.space/golos",
"description": "Страница со ссылками на информацию по сервисам dpos.space., касающимся Голоса",
"in_menu": "Справка"
"in_menu": "Справка",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/manage/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Управление блокчейном и аккаунтом Golos",
"description": "Сервис управления аккаунтом (изменение профиля) и блокчейном (делегаты, комитет) в Golos.",
"in_menu": "Управление"
"in_menu": "Управление",
"category": "no_category"
}
1 change: 1 addition & 0 deletions blockchains/golos/apps/manage/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<h2>Управление блокчейном и профилем</h2>
<h3>Профиль</h3>
Expand Down
1 change: 1 addition & 0 deletions blockchains/golos/apps/manage/pages/access/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/workers">Заявки воркеров</a></th><th><a href="'.$conf['siteUrl'].'golos/manage/subscribes">Подписки</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<style>.hidden{display:none;}</style>
<script src="'.$conf['siteUrl'].'blockchains/golos/apps/manage/pages/access/dostup.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/workers">Заявки воркеров</a></th><th><a href="'.$conf['siteUrl'].'golos/manage/subscribes">Подписки</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<div id="auth_msg" style="display: none;"><p>Вы не авторизовались. Просьба сделать это <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
<div id="active_auth_msg" style="display: none;"><p>Вы не ввели активный ключ. Пожалуйста удалите текущий аккаунт и авторизуйтесь с указанием и регулярного, и активного ключа, здесь: <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"title": "MULTISIG Golos",
"description": "Управление мультисигом в Golos",
"in_menu": "Мультисиг"
"description": "Управление мультисигом в Golos"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<?php if (!defined('NOTLOAD')) exit('No direct script access allowed');
return '<div id="auth_msg" style="display: none;"><p>Вы не авторизовались. Просьба сделать это <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
return '<h2>Страницы сервиса</h2>
<table><tr><th>Мультисиг</th>
<th><a href="'.$conf['siteUrl'].'golos/manage/witnesses">Делегаты</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/profile">Профиль</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/workers">Заявки воркеров</a></th><th><a href="'.$conf['siteUrl'].'golos/manage/subscribes">Подписки</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/witness">Управление делегатом</a></th>
</tr></table>
<div id="auth_msg" style="display: none;"><p>Вы не авторизовались. Просьба сделать это <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
<div id="active_auth_msg" style="display: none;"><p>Вы не ввели активный ключ. Пожалуйста удалите текущий аккаунт и авторизуйтесь с указанием и постинг, и активного ключа, здесь: <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
<div id="posting_page">
<div id="notice">
Expand Down Expand Up @@ -93,5 +103,5 @@
<div class="out" id="out-step-5"></div>
</section>
<a id="navlink" href="#nav">📲 Меню</a>
<script src="'.$conf['siteUrl'].'blockchains/golos/apps/multisig/footer.js"></script>
<script src="'.$conf['siteUrl'].'blockchains/golos/apps/manage/pages/multisig/footer.js"></script>
'; ?>
File renamed without changes.
1 change: 1 addition & 0 deletions blockchains/golos/apps/manage/pages/profile/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<div id="auth_msg" style="display: none;"><p>Вы не авторизовались. Просьба сделать это <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
<div id="posting_page">
Expand Down
1 change: 1 addition & 0 deletions blockchains/golos/apps/manage/pages/reset-keys/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/workers">Заявки воркеров</a></th><th><a href="'.$conf['siteUrl'].'golos/manage/subscribes">Подписки</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<style>.hidden{display:none;}</style>
<script src="'.$conf['siteUrl'].'blockchains/golos/apps/manage/pages/reset-keys/sbros.js"></script>
Expand Down
1 change: 1 addition & 0 deletions blockchains/golos/apps/manage/pages/subscribes/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<div id="auth_msg" style="display: none;"><p>Вы не авторизовались. Просьба сделать это <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
<div id="posting_page">
Expand Down
1 change: 1 addition & 0 deletions blockchains/golos/apps/manage/pages/witness/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<div id="auth_msg" style="display: none;"><p>Вы не авторизовались. Просьба сделать это <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
<div id="active_auth_msg" style="display: none;"><p>Вы не ввели активный ключ. Пожалуйста удалите текущий аккаунт и авторизуйтесь с указанием и регулярного, и активного ключа, здесь: <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
Expand Down
1 change: 1 addition & 0 deletions blockchains/golos/apps/manage/pages/witnesses/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<div id="auth_msg" style="display: none;"><p>Вы не авторизовались. Просьба сделать это <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
<div id="active_auth_msg" style="display: none;"><p>Вы не ввели активный ключ. Пожалуйста удалите текущий аккаунт и авторизуйтесь с указанием и регулярного, и активного ключа, здесь: <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
Expand Down
1 change: 1 addition & 0 deletions blockchains/golos/apps/manage/pages/workers/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<th><a href="'.$conf['siteUrl'].'golos/manage/create-account">Создать аккаунт</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/access">Доступы аккаунта</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/reset-keys">Сброс ключей</a></th>
<th><a href="'.$conf['siteUrl'].'golos/manage/multisig">Мультисиг</a></th>
</tr></table>
<div id="auth_msg" style="display: none;"><p>Вы не авторизовались. Просьба сделать это <a href="'.$conf['siteUrl'].'golos/accounts" target="_blank">здесь</a></p></div>
<div id="posting_page">
Expand Down
2 changes: 0 additions & 2 deletions blockchains/golos/apps/multisig/index.php

This file was deleted.

3 changes: 2 additions & 1 deletion blockchains/golos/apps/polls/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Опросы на Голосе",
"description": "Страница опросов Голоса",
"in_menu": "Опросы"
"in_menu": "Опросы",
"category": "tools"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/post/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Публикация постов",
"description": "Сервис публикации постов в блокчейне Golos",
"in_menu": "Публикация постов"
"in_menu": "Публикация постов",
"category": "no_category"
}
3 changes: 2 additions & 1 deletion blockchains/golos/apps/profiles/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Просмотр профилей",
"description": "Просмотрщик профилей в блокчейне Golos",
"in_menu": "Профили"
"in_menu": "Профили",
"category": "no_category"
}
Loading

0 comments on commit 2cf8638

Please sign in to comment.