community scripts refactoring and cleanup

This commit is contained in:
Evgeny
2022-08-27 08:49:29 +03:00
parent 521c6852e0
commit 93990298e8
15 changed files with 72 additions and 42 deletions

View File

@@ -1,4 +1,5 @@
-- name = "My apps"
-- description = "Simple apps widget"
-- type = "widget"
-- version = "1.0"
-- author = "Andrey Gavrilov"

View File

@@ -1,8 +1,10 @@
-- name = "История вызовов"
-- description = "Скрипт показывает историю вызов через прямое чтение базы звонков"
-- type = "widget"
-- author = "Andrey Gavrilov"
-- version = "1.0"
-- root = "yes"
-- lang = "ru"
-- root = "true"
local types = {"Входящие","Исходящие","Пропущенные","Отменённые","Отклонённые","Заблокированные","Все"}

View File

@@ -1,4 +1,5 @@
-- name = "File Explorer"
-- description = "Dropbox file explorer. Shows only AIO Launcher subdirectory"
-- type = "widget"
-- version = "1.0"
-- author = "Andrey Gavrilov"

View File

@@ -1,4 +1,7 @@
-- name = "Conversations"
-- description = "Dialogs widget anologue"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
local first_launch = true

View File

@@ -4,7 +4,7 @@
-- type = "widget"
-- author = "Andrey Gavrilov"
-- version = "2.0"
-- language = "ru"
-- lang = "ru"
local json = require "json"
local color = require "md_colors"

View File

@@ -1,4 +1,8 @@
ui:set_title("15 puzzle")
-- name = "15 Puzzle"
-- description = "Game"
-- type = "widget"
-- author = "Andrey Gavrilov"
-- version = "1.0"
local json = require "json"
local folded = "15 puzzle"

View File

@@ -1,4 +1,5 @@
-- name = "Horoscope"
-- description = "Horoscope for a given day"
-- arguments_default = "scorpio today en"
-- type = "widget"
-- version = "1.0"

View File

@@ -1,4 +1,7 @@
-- name = "Network file"
-- description = "Shows the contents of any file on the Internet"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function on_resume()
local args = settings:get()

View File

@@ -5,7 +5,6 @@
-- version = "1.0"
-- arguments_help = "Enter the title and the start and end date in this format: Title 2021 01 31 2021 09 25"
function on_resume()
if (next(settings:get()) == nil) then
ui:show_text("Tap to enter date")

View File

@@ -11,7 +11,7 @@ local red = md_colors.red_500
local ip = ""
function on_search(input)
if input:lower():find(string.lower("^ip$")) then
if input:lower():find("^ip$") then
get_ip()
end
end

View File

@@ -2,7 +2,7 @@
-- description = "Поиск по кодам автомобильных номеров России"
-- lang = "ru"
-- type = "search"
-- author = "Evgeny Zobnin (zobnin@gmail.com)
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function on_search(str)
@@ -19,6 +19,7 @@ codes = {
["02"] = "Республика Башкортостан",
["102"] = "Республика Башкортостан",
["03"] = "Республика Бурятия",
["103"] = "Республика Бурятия",
["04"] = "Республика Алтай (Горный Алтай)",
["05"] = "Республика Дагестан",
["06"] = "Республика Ингушетия",
@@ -43,6 +44,7 @@ codes = {
["23"] = "Краснодарский край",
["93"] = "Краснодарский край",
["123"] = "Краснодарский край",
["193"] = "Краснодарский край",
["24"] = "Красноярский край",
["84"] = "Красноярский край",
["88"] = "Красноярский край",
@@ -50,6 +52,7 @@ codes = {
["25"] = "Приморский край",
["125"] = "Приморский край",
["26"] = "Ставропольский край",
["126"] = "Ставропольский край",
["27"] = "Хабаровский край",
["28"] = "Амурская область",
["29"] = "Архангельская область",
@@ -61,14 +64,17 @@ codes = {
["134"] = "Волгоградская область",
["35"] = "Вологодская область",
["36"] = "Воронежская область",
["136"] = "Воронежская область",
["37"] = "Ивановская область",
["38"] = "Иркутская область",
["138"] = "Иркутская область",
["85"] = "Иркутская область",
["39"] = "Калининградская область",
["91"] = "Калининградская область",
["40"] = "Калужская область",
["41"] = "Камчатский край",
["42"] = "Кемеровская область",
["142"] = "Кемеровская область",
["43"] = "Кировская область",
["44"] = "Костромская область",
["45"] = "Курганская область",
@@ -79,12 +85,15 @@ codes = {
["50"] = "Московская область",
["90"] = "Московская область",
["150"] = "Московская область",
["750"] = "Московская область",
["190"] = "Московская область",
["790"] = "Московская область",
["51"] = "Мурманская область",
["52"] = "Нижегородская область",
["152"] = "Нижегородская область",
["53"] = "Новгородская область",
["54"] = "Новосибирская область",
["154"] = "Новосибирская область",
["55"] = "Омская область",
["56"] = "Оренбургская область",
["57"] = "Орловская область",
@@ -98,11 +107,13 @@ codes = {
["62"] = "Рязанская область",
["63"] = "Самарская область",
["163"] = "Самарская область",
["763"] = "Самарская область",
["64"] = "Саратовская область",
["164"] = "Саратовская область",
["65"] = "Сахалинская область",
["66"] = "Свердловская область",
["96"] = "Свердловская область",
["196"] = "Свердловская область",
["67"] = "Смоленская область",
["68"] = "Тамбовская область",
["69"] = "Тверская область",
@@ -123,6 +134,7 @@ codes = {
["197"] = "Москва",
["199"] = "Москва",
["777"] = "Москва",
["797"] = "Москва",
["799"] = "Москва",
["78"] = "Санкт-Петербург",
["98"] = "Санкт-Петербург",

View File

@@ -6,7 +6,7 @@
-- version = "1.0"
-- settings
local feed = "https://news.yandex.ru/index.rss"
local feed = "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
local lines_num = 5
local auto_folding = false

View File

@@ -1,4 +1,8 @@
ui:set_title("Sudoku")
-- name = "Sudoku"
-- description = "Sudoku games"
-- type = "Game"
-- author = "Andrey Gavrilov"
-- version = "1.0"
local json = require "json"
local folded = "Sudoku"