Compare commits

...

30 commits
v2.3.2 ... main

Author SHA1 Message Date
4a0f274fa1
Update README.md 2023-07-28 13:02:11 +03:00
937d9a8c98
Update README.md 2023-07-27 18:46:27 +03:00
cb9af7cfb0
Update README.md 2023-07-27 18:18:34 +03:00
e9bafe6aeb
Merge pull request #19 from Redume/dependabot/go_modules/github.com/gofiber/fiber/v2-2.43.0
Bump github.com/gofiber/fiber/v2 from 2.42.0 to 2.43.0
2023-07-05 16:14:02 +03:00
56f80e4bd8
Update README.md 2023-06-29 22:05:30 +03:00
dependabot[bot]
4d80b32ed7
Bump github.com/gofiber/fiber/v2 from 2.42.0 to 2.43.0
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.42.0 to 2.43.0.
- [Release notes](https://github.com/gofiber/fiber/releases)
- [Commits](https://github.com/gofiber/fiber/compare/v2.42.0...v2.43.0)

---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-14 15:07:50 +00:00
2ab473064a
Update README.md 2023-06-05 19:30:58 +03:00
9c703f1a90
updated the table 2023-06-05 18:54:43 +03:00
1d78c3c14c
replace banner 2023-06-05 18:54:14 +03:00
f05fb8c9d3
replace banner 2023-05-19 18:00:00 +03:00
39786d6484
replace banner and license 2023-05-19 17:59:33 +03:00
25122c505c
replace banner 2023-05-19 17:55:39 +03:00
cf4f126436
rebranding 2023-05-19 17:54:37 +03:00
be8e190c73
rollback 2023-03-18 18:50:20 +03:00
b07e2d0f2c
file was deleted for some reason, returned it 2023-03-18 16:51:42 +03:00
0fa390c8ee
change name folder, project file optimization 2023-03-18 16:50:33 +03:00
de77b44647
delete google analytics 2023-03-18 16:49:24 +03:00
b72629c751
change name folder, project file optimization 2023-03-18 16:49:04 +03:00
dfa190056e
change name folder, project file optimization 2023-03-18 16:48:39 +03:00
3b0db4509a
change name folder, project file optimization 2023-03-18 16:47:54 +03:00
d80a36b8ae
change telegram link 2023-03-18 16:45:36 +03:00
3463c8af8c
change name folder, project file optimization 2023-03-18 16:40:05 +03:00
b9ffe9611e add security file 2023-03-18 16:10:58 +03:00
4bd541c995 uppercase "nasa" to "NASA" 2023-03-18 16:09:20 +03:00
9d32f773f4 delete folder, project file optimization 2023-03-18 16:05:46 +03:00
372999e446 change depend 2023-03-18 16:03:09 +03:00
d5e73252fc update bug report template (test) 2023-03-18 15:59:17 +03:00
0e6cc4b2ba update bug report template (test) 2023-03-18 14:59:56 +03:00
2da22b7501 updated the table 2023-02-28 21:49:49 +03:00
4c205cf747 updated the table 2023-02-28 21:48:19 +03:00
34 changed files with 298 additions and 456 deletions

View file

@ -8,29 +8,29 @@ assignees: ''
--- ---
**Describe the bug** **Describe the bug**
A clear and concise description of what the bug is. A clear and concise description of what the bug is.
**To Reproduce** **To Reproduce**
Steps to reproduce the behavior: Steps to reproduce the behavior:
1. Go to '...' 1. Go to '...'
2. Click on '....' 2. Click on '....'
3. Scroll down to '....' 3. Scroll down to '....'
4. See error 4. See error
**Expected behavior** **Expected behavior**
A clear and concise description of what you expected to happen. A clear and concise description of what you expected to happen.
**Screenshots** **Screenshots**
If applicable, add screenshots to help explain your problem. If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):** **Desktop (please complete the following information):**
- OS: [e.g. Linux, Debian] - OS: [e.g. Linux, Debian]
- Version [e.g. 10] - Version [e.g. 10]
- Graphical shell [e.g. GNOME] - Graphical shell [e.g. GNOME]
**Smartphone (please complete the following information):** **Smartphone (please complete the following information):**
- Device: [e.g. Galaxy Z Fold 2] - Device: [e.g. Galaxy Z Fold 2]
- OS: [e.g. Android 12] - OS: [e.g. Android 12]
**Additional context** **Additional context**
Add any other context about the problem here. Add any other context about the problem here.

View file

@ -60,7 +60,7 @@ representative at an online or offline event.
Instances of abusive, harassing, or otherwise unacceptable behavior may be Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at reported to the community leaders responsible for enforcement at
https://t.me/Redddume. https://t.me/Redume.
All complaints will be reviewed and investigated promptly and fairly. All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the All community leaders are obligated to respect the privacy and security of the

129
README.md
View file

@ -1,109 +1,56 @@
<p align="center"><img src="web/static/image/icons/banner.png" alt="EveryNasa banner" title="EveryNasa"></p> <p align="center"><img src="web/static/image/icons/favicon.png" alt="Starlio"></p>
<h2 align="center"> Amazing wallpaper straight from space! </h2>
The program takes a picture from the NASA [website](https://apod.nasa.gov/apod) every day **<p align="center">This version of the project is no longer maintained. See another: https://github.com/Starlio-app/Starlio</p>**
and sets it as a background for your workspace.
### What EveryNasa can do?
- Installing wallpapers on your desktop
- Installing wallpapers on your desktop every day
- There is information about each photo
- You can add any photo to your favorites
### Contents
- [How to build](#how-to-build)
- [Solution or answers to possible problems](#solution-or-answers-to-possible-problems)
- [License](#license)
--- ---
> **Note**
> This app is not official from NASA
| Platform | Status | Latest version | Get it on | | Platform | Status | Get in on |
|--------------------|---------------|--------------------|-----------------------------------------------------------------------------------------| |----------|--------|--------------------------------------------------|
| Windows | Available | 2.3.2 | [.msi](https://github.com/Redume/EveryNasa/releases/download/v2.3.2/EveryNasa.msi) | | Windows | 🟡 | [Github][windows-download] |
| Linux | Unsupported | 1.6 | [Binary file](https://github.com/Redume/EveryNasa/releases/download/v1.6/EveryNasa) | | Linux | 🟡 | [Github][linux-download] |
| Android | Available | 1.7.4 | [Google Play](https://play.google.com/store/apps/details?id=ru.murzify.everynasa) | | Android | 🟢 | [Google Play][google-play] / [RuStore][rustore]* |
| MacOS | Unavailable | | | | MacOS | 🔴 | N/A |
| iOS | Unavailable | | | | iOS | 🔴 | N/A |
| Wallpaper Engine | Unsupported | 1.0 | [Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=2884180886) |
---
### Solution or answers to possible problems
Any bugs / problems that are not covered by these questions, please open an [issue](https://github.com/Redume/EveryNasa/issues/new?assignees=&labels=bug&template=bug_report.md&title=Bug)
<details> <details>
<summary>Windows</summary> <summary>Explanation of designations</summary>
<li>To make all functions work correctly, install the program anywhere except Program Files(x86) / Program Files</li>
</details>
#### 🟢 — Development for the platform is supported to date
<details> #### 🟡 — Development was earlier, but was discontinued
<summary>Linux</summary> #### 🔴 — Not available for this platform
#### * — Loaded an old version, to get the current version it is better to install from [Google Play][google-play]
- If you have a mistake with `ayatana-appindicator3-0.1`
<details>
<summary><b>Debian / Ubuntu / Mint</b></summary>
<details>
<summary><b>KDE Plasma</b></summary>
```shell
$ sudo apt install gir1.2-appindicator3-0.1
```
</details>
<details>
<summary><b>GNOME</b></summary>
- Install the package
```shell
$ sudo apt install gnome-shell-extension-appindicator
```
- Open `Tweaks`
- Go to `Extensions`
- Enable `Kstatusnotifieritem/appindicator support`
</details>
</details>
</details>
### How to build
<details>
<summary></summary>
- Install [GoLang](https://golang.org/dl/). Recommended version: 1.19.1
- First make a build. If you want to create a build without a console window, then remove `-ldflags "-H windowsgui"` from the command
```shell
go build -ldflags "-s -H windowsgui"
```
- Create a build of the installation package
```shell
go-msi make -msi EveryNasa.msi --version <version> -s wix
```
- Done
</details> </details>
--- ---
### License [windows-download]: https://github.com/Starlio-app/StarlioX/releases/latest
This project is licensed under the GPLv3 - see the [LICENSE](LICENSE) file for details. [linux-download]: https://github.com/Starlio-app/StarlioX/releases/download/v1.6/Starlio
[google-play]: https://play.google.com/store/apps/details?id=ru.murzify.everynasa
[rustore]: https://apps.rustore.ru/app/ru.murzify.everynasa
### License. The project is under the [GPLv3](https://www.gnu.org/licenses/gpl-3.0.html) license.
``` ```
If the program does terminal interaction, make it output a short EveryNasa Copyright (C) 2022-2023 Redume
notice like this when it starts in an interactive mode: StarlioX Copyright (C) 2023 Redume
EveryNasa Copyright (C) 2023-2023 Redume This program is free software: you can redistribute it and/or modify
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. it under the terms of the GNU General Public License as published by
This is free software, and you are welcome to redistribute it the Free Software Foundation, either version 3 of the License, or
under certain conditions; type `show c' for details. (at your option) any later version.
The hypothetical commands `show w' and `show c' should show the appropriate This program is distributed in the hope that it will be useful,
parts of the General Public License. Of course, your program's commands but WITHOUT ANY WARRANTY; without even the implied warranty of
might be different; for a GUI interface, you would use an "about box". MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
``` ```
### Third-party library licenses ### Third-party library licenses

19
SECURITY.md Normal file
View file

@ -0,0 +1,19 @@
# Security Policy
## Supported Versions
Use this section to tell people about which versions of your project are
currently being supported with security updates.
| Version | Status |
|---------|--------|
| < 2.4 | |
| 2.4 | ✔️ |
## Reporting a Vulnerability
Use this section to tell people how to report a vulnerability.
Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.

View file

@ -2,8 +2,7 @@ package controllers
import ( import (
"database/sql" "database/sql"
"github.com/Redume/EveryNasa/api/utils" "github.com/Redume/Starlio/utils"
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )
@ -21,25 +20,25 @@ var GetFavorites = func(c *fiber.Ctx) error {
} }
var title, explanation, copyright, date, url, hdurl, media_type string var title, explanation, copyright, date, url, hdurl, media_type string
db := functions.GetDatabase() db := utils.GetDatabase()
if FavoriteTitle != "" { if FavoriteTitle != "" {
queryFavorites, err := db.Query("SELECT * FROM favorite WHERE title LIKE ?", FavoriteTitle) queryFavorites, err := db.Query("SELECT * FROM favorite WHERE title LIKE ?", FavoriteTitle)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
defer func(query *sql.Rows) { defer func(query *sql.Rows) {
err := query.Close() err := query.Close()
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
}(queryFavorites) }(queryFavorites)
for queryFavorites.Next() { for queryFavorites.Next() {
err := queryFavorites.Scan(&title, &explanation, &copyright, &date, &url, &hdurl, &media_type) err := queryFavorites.Scan(&title, &explanation, &copyright, &date, &url, &hdurl, &media_type)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
return c.JSON(fiber.Map{ return c.JSON(fiber.Map{
@ -55,13 +54,13 @@ var GetFavorites = func(c *fiber.Ctx) error {
} else { } else {
queryFavorite, err := db.Query("SELECT * FROM favorite") queryFavorite, err := db.Query("SELECT * FROM favorite")
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
defer func(query *sql.Rows) { defer func(query *sql.Rows) {
err := query.Close() err := query.Close()
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
}(queryFavorite) }(queryFavorite)
@ -69,7 +68,7 @@ var GetFavorites = func(c *fiber.Ctx) error {
for queryFavorite.Next() { for queryFavorite.Next() {
err := queryFavorite.Scan(&title, &explanation, &copyright, &date, &url, &hdurl, &media_type) err := queryFavorite.Scan(&title, &explanation, &copyright, &date, &url, &hdurl, &media_type)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
favorites = append(favorites, Favorite{ favorites = append(favorites, Favorite{
@ -102,7 +101,7 @@ var AddFavorite = func(c *fiber.Ctx) error {
return nil return nil
} }
db := functions.GetDatabase() db := utils.GetDatabase()
_, err := db.Exec("INSERT INTO favorite (title, explanation, copyright, date, url, hdurl, media_type) VALUES (?, ?, ?, ?, ?, ?, ?)", _, err := db.Exec("INSERT INTO favorite (title, explanation, copyright, date, url, hdurl, media_type) VALUES (?, ?, ?, ?, ?, ?, ?)",
title, title,
@ -114,7 +113,7 @@ var AddFavorite = func(c *fiber.Ctx) error {
media_type) media_type)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
utils.Respond(c, utils.Message(true, "Favorite added")) utils.Respond(c, utils.Message(true, "Favorite added"))
@ -124,11 +123,11 @@ var AddFavorite = func(c *fiber.Ctx) error {
var DeleteFavorite = func(c *fiber.Ctx) error { var DeleteFavorite = func(c *fiber.Ctx) error {
title := c.FormValue("title") title := c.FormValue("title")
db := functions.GetDatabase() db := utils.GetDatabase()
_, err := db.Exec("DELETE FROM favorite WHERE title = ?", title) _, err := db.Exec("DELETE FROM favorite WHERE title = ?", title)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
utils.Respond(c, utils.Message(true, "Favorite deleted")) utils.Respond(c, utils.Message(true, "Favorite deleted"))

View file

@ -5,27 +5,26 @@ import (
"os/user" "os/user"
"strings" "strings"
"github.com/Redume/EveryNasa/api/utils" "github.com/Redume/Starlio/utils"
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )
var CreateLabel = func(c *fiber.Ctx) error { var CreateLabel = func(c *fiber.Ctx) error {
u, err := user.Current() u, err := user.Current()
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
dir, err := os.Getwd() dir, err := os.Getwd()
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
dir = strings.Replace(dir, "\\", "\\\\", -1) + "\\EveryNasa.exe" dir = strings.Replace(dir, "\\", "\\\\", -1) + "\\Starlio.exe"
err = functions.CreateLnk(dir, strings.Replace(u.HomeDir, "\\", "\\\\", -1)+"\\Desktop\\EveryNasa.lnk") err = utils.CreateLnk(dir, strings.Replace(u.HomeDir, "\\", "\\\\", -1)+"\\Desktop\\Starlio.lnk")
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
utils.Respond(c, utils.Message(true, "The shortcut was successfully created")) utils.Respond(c, utils.Message(true, "The shortcut was successfully created"))

View file

@ -2,44 +2,43 @@ package controllers
import ( import (
"database/sql" "database/sql"
"github.com/Redume/EveryNasa/api/utils" "github.com/Redume/Starlio/utils"
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
) )
var SettingsGet = func(c *fiber.Ctx) error { var SettingsGet = func(c *fiber.Ctx) error {
db, err := sql.Open("sqlite3", "EveryNasa.db") db, err := sql.Open("sqlite3", "Starlio.db")
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
querySettings, err := db.Query("SELECT * FROM settings") querySettings, err := db.Query("SELECT * FROM settings")
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
defer func(query *sql.Rows) { defer func(query *sql.Rows) {
err := query.Close() err := query.Close()
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
}(querySettings) }(querySettings)
var startup, wallpaper, save_logg, analytics int var startup, wallpaper, save_logg int
for querySettings.Next() { for querySettings.Next() {
err := querySettings.Scan(&startup, &wallpaper, &save_logg, &analytics) err := querySettings.Scan(&startup, &wallpaper, &save_logg)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
var data = map[string]interface{}{ var data = map[string]interface{}{
"startup": startup, "startup": startup,
"wallpaper": wallpaper, "wallpaper": wallpaper,
"save_logg": save_logg, "save_logg": save_logg,
"analytics": analytics} }
utils.Respond(c, data) utils.Respond(c, data)
} }
@ -48,17 +47,16 @@ var SettingsGet = func(c *fiber.Ctx) error {
} }
var SettingsUpdate = func(c *fiber.Ctx) error { var SettingsUpdate = func(c *fiber.Ctx) error {
db, err := sql.Open("sqlite3", "EveryNasa.db") db, err := sql.Open("sqlite3", "Starlio.db")
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
startup := c.FormValue("startup") startup := c.FormValue("startup")
wallpaper := c.FormValue("wallpaper") wallpaper := c.FormValue("wallpaper")
save_logg := c.FormValue("save_logg") save_logg := c.FormValue("save_logg")
analytics := c.FormValue("analytics")
if startup == "" && wallpaper == "" && save_logg == "" && analytics == "" { if startup == "" && wallpaper == "" && save_logg == "" {
utils.Respond(c, utils.Message(false, "All fields are required.")) utils.Respond(c, utils.Message(false, "All fields are required."))
return nil return nil
} }
@ -66,32 +64,25 @@ var SettingsUpdate = func(c *fiber.Ctx) error {
if wallpaper != "" { if wallpaper != "" {
_, err := db.Exec("UPDATE settings SET wallpaper = ?", wallpaper) _, err := db.Exec("UPDATE settings SET wallpaper = ?", wallpaper)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
if wallpaper == "1" { if wallpaper == "1" {
go functions.StartWallpaper() go utils.StartWallpaper()
} }
} }
if startup != "" { if startup != "" {
_, err := db.Exec("UPDATE settings SET startup = ?", startup) _, err := db.Exec("UPDATE settings SET startup = ?", startup)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
} }
if save_logg != "" { if save_logg != "" {
_, err := db.Exec("UPDATE settings SET save_logg = ?", save_logg) _, err := db.Exec("UPDATE settings SET save_logg = ?", save_logg)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
}
}
if analytics != "" {
_, err := db.Exec("UPDATE settings SET analytics = ?", analytics)
if err != nil {
functions.Logger(err.Error())
} }
} }

View file

@ -6,8 +6,7 @@ import (
"os/user" "os/user"
"strings" "strings"
"github.com/Redume/EveryNasa/api/utils" "github.com/Redume/Starlio/utils"
"github.com/Redume/EveryNasa/functions"
) )
var Startup = func(c *fiber.Ctx) error { var Startup = func(c *fiber.Ctx) error {
@ -32,19 +31,19 @@ var Startup = func(c *fiber.Ctx) error {
var SetStartup = func(c *fiber.Ctx) error { var SetStartup = func(c *fiber.Ctx) error {
u, err := user.Current() u, err := user.Current()
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
dir, err := os.Getwd() dir, err := os.Getwd()
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
dir = strings.Replace(dir, "\\", "\\\\", -1) + "\\EveryNasa.exe" dir = strings.Replace(dir, "\\", "\\\\", -1) + "\\Starlio.exe"
err = functions.CreateLnk(dir, strings.Replace(u.HomeDir, "\\", "\\\\", -1)+"\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\EveryNasa.lnk") err = utils.CreateLnk(dir, strings.Replace(u.HomeDir, "\\", "\\\\", -1)+"\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\Starlio.lnk")
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
utils.Respond(c, utils.Message(true, "The settings have been applied successfully.")) utils.Respond(c, utils.Message(true, "The settings have been applied successfully."))
@ -54,12 +53,12 @@ var SetStartup = func(c *fiber.Ctx) error {
var RemoveStartup = func(c *fiber.Ctx) error { var RemoveStartup = func(c *fiber.Ctx) error {
u, err := user.Current() u, err := user.Current()
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
err = os.Remove(strings.Replace(u.HomeDir, "\\", "\\\\", -1) + "\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\EveryNasa.lnk") err = os.Remove(strings.Replace(u.HomeDir, "\\", "\\\\", -1) + "\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\Starlio.lnk")
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
} }
utils.Respond(c, utils.Message(true, "The settings have been applied successfully.")) utils.Respond(c, utils.Message(true, "The settings have been applied successfully."))

View file

@ -1,8 +1,7 @@
package controllers package controllers
import ( import (
"github.com/Redume/EveryNasa/api/utils" "github.com/Redume/Starlio/utils"
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/reujab/wallpaper" "github.com/reujab/wallpaper"
) )
@ -17,7 +16,7 @@ var WallpaperUpdate = func(c *fiber.Ctx) error {
err := wallpaper.SetFromURL(url) err := wallpaper.SetFromURL(url)
if err != nil { if err != nil {
functions.Logger(err.Error()) utils.Logger(err.Error())
utils.Respond(c, utils.Message(false, "An error occurred while setting the wallpaper")) utils.Respond(c, utils.Message(false, "An error occurred while setting the wallpaper"))
return nil return nil
} }

29
go.mod
View file

@ -1,21 +1,21 @@
module github.com/Redume/EveryNasa module github.com/Redume/Starlio
go 1.19 go 1.19
require ( require (
github.com/getlantern/systray v1.2.1 github.com/getlantern/systray v1.2.1
github.com/go-ole/go-ole v1.2.6 github.com/go-ole/go-ole v1.2.6
github.com/gofiber/fiber/v2 v2.39.0 github.com/gofiber/fiber/v2 v2.43.0
github.com/jasonlvhit/gocron v0.0.1 github.com/jasonlvhit/gocron v0.0.1
github.com/mattn/go-sqlite3 v1.14.16 github.com/mattn/go-sqlite3 v1.14.16
github.com/reujab/wallpaper v0.0.0-20210630195606-5f9f655b3740 github.com/reujab/wallpaper v0.0.0-20210630195606-5f9f655b3740
github.com/rodkranz/fetch v1.2.0 github.com/rodkranz/fetch v1.2.0
github.com/shirou/gopsutil/v3 v3.22.9 github.com/shirou/gopsutil/v3 v3.23.2
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
) )
require ( require (
github.com/andybalholm/brotli v1.0.4 // indirect github.com/andybalholm/brotli v1.0.5 // indirect
github.com/getlantern/context v0.0.0-20190109183933-c447772a6520 // indirect github.com/getlantern/context v0.0.0-20190109183933-c447772a6520 // indirect
github.com/getlantern/errors v0.0.0-20190325191628-abdb3e3e36f7 // indirect github.com/getlantern/errors v0.0.0-20190325191628-abdb3e3e36f7 // indirect
github.com/getlantern/golog v0.0.0-20190830074920-4ef2e798c2d7 // indirect github.com/getlantern/golog v0.0.0-20190830074920-4ef2e798c2d7 // indirect
@ -23,22 +23,27 @@ require (
github.com/getlantern/hidden v0.0.0-20190325191715-f02dbb02be55 // indirect github.com/getlantern/hidden v0.0.0-20190325191715-f02dbb02be55 // indirect
github.com/getlantern/ops v0.0.0-20190325191751-d70cb0d6f85f // indirect github.com/getlantern/ops v0.0.0-20190325191751-d70cb0d6f85f // indirect
github.com/go-stack/stack v1.8.0 // indirect github.com/go-stack/stack v1.8.0 // indirect
github.com/klauspost/compress v1.15.0 // indirect github.com/google/uuid v1.3.0 // indirect
github.com/klauspost/compress v1.16.3 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
github.com/philhofer/fwd v1.1.2 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/rivo/uniseg v0.2.0 // indirect github.com/rivo/uniseg v0.2.0 // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect github.com/savsgio/dictpool v0.0.0-20221023140959-7bf2e61cea94 // indirect
github.com/tklauser/numcpus v0.4.0 // indirect github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee // indirect
github.com/tinylib/msgp v1.1.8 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.40.0 // indirect github.com/valyala/fasthttp v1.45.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect github.com/valyala/tcplisten v1.0.0 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect github.com/yusufpapurcu/wmi v1.2.2 // indirect
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect golang.org/x/sys v0.6.0 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect
) )

102
go.sum
View file

@ -1,5 +1,5 @@
github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY= github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs=
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@ -23,27 +23,28 @@ github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiU
github.com/go-redis/redis v6.15.5+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= github.com/go-redis/redis v6.15.5+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/gofiber/fiber/v2 v2.39.0 h1:uhWpYQ6EHN8J7FOPYbI2hrdBD/KNZBC5CjbuOd4QUt4= github.com/gofiber/fiber/v2 v2.43.0 h1:yit3E4kHf178B60p5CQBa/3v+WVuziWMa/G2ZNyLJB0=
github.com/gofiber/fiber/v2 v2.39.0/go.mod h1:Cmuu+elPYGqlvQvdKyjtYsjGMi69PDp8a1AY2I5B2gM= github.com/gofiber/fiber/v2 v2.43.0/go.mod h1:mpS1ZNE5jU+u+BA4FbM+KKnUzJ4wzTK+FT2tG3tU+6I=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/jasonlvhit/gocron v0.0.1 h1:qTt5qF3b3srDjeOIR4Le1LfeyvoYzJlYpqvG7tJX5YU= github.com/jasonlvhit/gocron v0.0.1 h1:qTt5qF3b3srDjeOIR4Le1LfeyvoYzJlYpqvG7tJX5YU=
github.com/jasonlvhit/gocron v0.0.1/go.mod h1:k9a3TV8VcU73XZxfVHCHWMWF9SOqgoku0/QlY2yvlA4= github.com/jasonlvhit/gocron v0.0.1/go.mod h1:k9a3TV8VcU73XZxfVHCHWMWF9SOqgoku0/QlY2yvlA4=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/klauspost/compress v1.15.0 h1:xqfchp4whNFxn5A4XFyyYtitiWI8Hy5EW59jEwcyL6U= github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY=
github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU= github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y=
@ -53,6 +54,9 @@ github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw= github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw=
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0= github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0=
github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU=
github.com/philhofer/fwd v1.1.2 h1:bnDivRJ1EWPjUIRXV5KfORO897HTbpFAQddBdE8t7Gw=
github.com/philhofer/fwd v1.1.2/go.mod h1:qkPdfjR2SIEbspLqpe1tO4n5yICnr2DY7mqEx2tUTP0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
@ -63,72 +67,108 @@ github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rodkranz/fetch v1.2.0 h1:Yw9E7EOfNbCSEdAfNGu7HXJYkqEj/nRG5GQcnc7M1RI= github.com/rodkranz/fetch v1.2.0 h1:Yw9E7EOfNbCSEdAfNGu7HXJYkqEj/nRG5GQcnc7M1RI=
github.com/rodkranz/fetch v1.2.0/go.mod h1:ojApfh+3ll3N2GP5dvYLGlxOrLS1ke5IRqpOUS7XGf4= github.com/rodkranz/fetch v1.2.0/go.mod h1:ojApfh+3ll3N2GP5dvYLGlxOrLS1ke5IRqpOUS7XGf4=
github.com/shirou/gopsutil/v3 v3.22.9 h1:yibtJhIVEMcdw+tCTbOPiF1VcsuDeTE4utJ8Dm4c5eA= github.com/savsgio/dictpool v0.0.0-20221023140959-7bf2e61cea94 h1:rmMl4fXJhKMNWl+K+r/fq4FbbKI+Ia2m9hYBLm2h4G4=
github.com/shirou/gopsutil/v3 v3.22.9/go.mod h1:bBYl1kjgEJpWpxeHmLI+dVHWtyAwfcmSBLDsp2TNT8A= github.com/savsgio/dictpool v0.0.0-20221023140959-7bf2e61cea94/go.mod h1:90zrgN3D/WJsDd1iXHT96alCoN2KJo6/4x1DZC3wZs8=
github.com/savsgio/gotils v0.0.0-20220530130905-52f3993e8d6d/go.mod h1:Gy+0tqhJvgGlqnTF8CVGP0AaGRjwBtXs/a5PA0Y3+A4=
github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee h1:8Iv5m6xEo1NR1AvpV+7XmhI4r39LGNzwUL4YpMuL5vk=
github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee/go.mod h1:qwtSXrKuJh/zsFQ12yEE89xfCrGKK63Rr7ctU/uCo4g=
github.com/shirou/gopsutil/v3 v3.23.2 h1:PAWSuiAszn7IhPMBtXsbSCafej7PqUOvY6YywlQUExU=
github.com/shirou/gopsutil/v3 v3.23.2/go.mod h1:gv0aQw33GLo3pG8SiWKiQrbDzbRY1K80RyZJ7V4Th1M=
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA= github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA=
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog= github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/tklauser/go-sysconf v0.3.10 h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/tklauser/numcpus v0.4.0 h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//o= github.com/tinylib/msgp v1.1.6/go.mod h1:75BAfg2hauQhs3qedfdDZmWAPcFMAvJE5b9rGOMufyw=
github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= github.com/tinylib/msgp v1.1.8 h1:FCXC1xanKO4I8plpHGH2P7koL/RzZs12l/+r7vakfm0=
github.com/tinylib/msgp v1.1.8/go.mod h1:qkpG+2ldGg4xRFmx+jfTvZPxfGFhi64BcnL9vkCm/Tw=
github.com/tklauser/go-sysconf v0.3.11 h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM=
github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI=
github.com/tklauser/numcpus v0.6.0 h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms=
github.com/tklauser/numcpus v0.6.0/go.mod h1:FEZLMke0lhOUG6w2JadTzp0a+Nl8PF/GFkQ5UVIcaL4=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.40.0 h1:CRq/00MfruPGFLTQKY8b+8SfdK60TxNztjRMnH0t1Yc= github.com/valyala/fasthttp v1.45.0 h1:zPkkzpIn8tdHZUrVa6PzYd0i5verqiPSkgTd3bSUcpA=
github.com/valyala/fasthttp v1.40.0/go.mod h1:t/G+3rLek+CyY9bnIE+YlMRddxVAAGjhxndDB4i4C0I= github.com/valyala/fasthttp v1.45.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA=
github.com/valyala/tcplisten v1.0.0 h1:rBHj/Xf+E1tRGZyWIWwJDiRY0zc1Js+CV5DqwacVSA8= github.com/valyala/tcplisten v1.0.0 h1:rBHj/Xf+E1tRGZyWIWwJDiRY0zc1Js+CV5DqwacVSA8=
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg=
github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20180801234040-f4c29de78a2a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180801234040-f4c29de78a2a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab h1:2QkjZIsXupsJbJIdSjjUOgWK3aEtzyuh2mPt3l/CkeU= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU=
gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI=
gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

30
main.go
View file

@ -1,9 +1,8 @@
package main package main
import ( import (
"github.com/Redume/EveryNasa/api/controllers" "github.com/Redume/Starlio/api/controllers"
"github.com/Redume/EveryNasa/functions" "github.com/Redume/Starlio/utils"
"github.com/Redume/EveryNasa/web/page"
"github.com/getlantern/systray" "github.com/getlantern/systray"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors" "github.com/gofiber/fiber/v2/middleware/cors"
@ -12,11 +11,12 @@ import (
func main() { func main() {
go open.Run("http://localhost:3000") go open.Run("http://localhost:3000")
go functions.Database() go utils.Database()
go systray.Run(functions.Tray, functions.Quit) go systray.Run(utils.Tray, utils.Quit)
go functions.StartWallpaper() go utils.StartWallpaper()
app := fiber.New() app := fiber.New()
app = fiber.New(fiber.Config{ app = fiber.New(fiber.Config{
ErrorHandler: func(ctx *fiber.Ctx, err error) error { ErrorHandler: func(ctx *fiber.Ctx, err error) error {
code := fiber.StatusInternalServerError code := fiber.StatusInternalServerError
@ -37,16 +37,26 @@ func main() {
app.Use(cors.New()) app.Use(cors.New())
app.Get("/", func(c *fiber.Ctx) error { app.Get("/", func(c *fiber.Ctx) error {
return page.Gallery(c) con := utils.Connected()
if con == false {
return c.SendFile("./web/errors/500.html")
}
return c.SendFile("./web/page/gallery.html")
}) })
app.Get("/settings", func(c *fiber.Ctx) error { app.Get("/settings", func(c *fiber.Ctx) error {
return page.Settings(c) con := utils.Connected()
if con == false {
return c.SendFile("./web/errors/500.html")
}
return c.SendFile("./web/page/settings.html")
}) })
app.Get("/about", func(c *fiber.Ctx) error { app.Get("/about", func(c *fiber.Ctx) error {
return page.About(c) return c.SendFile("./web/page/about.html")
}) })
app.Get("/favorite", func(c *fiber.Ctx) error { app.Get("/favorite", func(c *fiber.Ctx) error {
return page.Favorite(c) return c.SendFile("./web/page/favorite.html")
}) })
api := app.Group("/api") api := app.Group("/api")

View file

@ -1,4 +1,4 @@
package functions package utils
import "net/http" import "net/http"

View file

@ -1,4 +1,4 @@
package functions package utils
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package functions package utils
import ( import (
"database/sql" "database/sql"
@ -6,7 +6,7 @@ import (
) )
func Database() { func Database() {
db, err := sql.Open("sqlite3", "EveryNasa.db") db, err := sql.Open("sqlite3", "Starlio.db")
if err != nil { if err != nil {
Logger(err.Error()) Logger(err.Error())
} }
@ -16,8 +16,7 @@ func Database() {
CREATE TABLE IF NOT EXISTS settings ( CREATE TABLE IF NOT EXISTS settings (
startup INTEGER DEFAULT 0, startup INTEGER DEFAULT 0,
wallpaper INTEGER DEFAULT 0, wallpaper INTEGER DEFAULT 0,
save_logg INTEGER DEFAULT 1, save_logg INTEGER DEFAULT 1
analytics INTEGER DEFAULT 1
);` );`
_, err = db.Exec(sqlTable) _, err = db.Exec(sqlTable)
@ -25,12 +24,12 @@ func Database() {
Logger(err.Error()) Logger(err.Error())
} }
stmt, err := db.Prepare("INSERT INTO settings(startup, wallpaper, save_logg, analytics) values(?,?,?,?)") stmt, err := db.Prepare("INSERT INTO settings(startup, wallpaper, save_logg) values(?,?,?)")
if err != nil { if err != nil {
Logger(err.Error()) Logger(err.Error())
} }
_, err = stmt.Exec(0, 0, 1, 1) _, err = stmt.Exec(0, 0, 1)
if err != nil { if err != nil {
Logger(err.Error()) Logger(err.Error())
} }
@ -56,7 +55,7 @@ func Database() {
} }
func GetDatabase() *sql.DB { func GetDatabase() *sql.DB {
db, err := sql.Open("sqlite3", "EveryNasa.db") db, err := sql.Open("sqlite3", "Starlio.db")
if err != nil { if err != nil {
Logger(err.Error()) Logger(err.Error())
} }

View file

@ -1,4 +1,4 @@
package functions package utils
import ( import (
"encoding/json" "encoding/json"

View file

@ -3,7 +3,6 @@ package utils
import ( import (
"encoding/json" "encoding/json"
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )
@ -15,6 +14,6 @@ func Respond(c *fiber.Ctx, data map[string]interface{}) {
c.Set("Content-Type", "application/json") c.Set("Content-Type", "application/json")
err := json.NewEncoder(c).Encode(data) err := json.NewEncoder(c).Encode(data)
if err != nil { if err != nil {
functions.Logger(err.Error()) Logger(err.Error())
} }
} }

View file

@ -1,4 +1,4 @@
package functions package utils
import ( import (
"fmt" "fmt"
@ -11,8 +11,8 @@ import (
func Tray() { func Tray() {
systray.SetIcon(GetIcon("web/static/image/icons/icon.ico")) systray.SetIcon(GetIcon("web/static/image/icons/icon.ico"))
systray.SetTitle("EveryNasa") systray.SetTitle("Starlio")
systray.SetTooltip("EveryNasa") systray.SetTooltip("Starlio")
ui := systray.AddMenuItem("Open UI", "Open UI") ui := systray.AddMenuItem("Open UI", "Open UI")
exit := systray.AddMenuItem("Quit", "Quit the whole app") exit := systray.AddMenuItem("Quit", "Quit the whole app")
@ -30,7 +30,7 @@ func Tray() {
} }
func Quit() { func Quit() {
err := KillProcess("EveryNasa.exe") err := KillProcess("Starlio.exe")
if err != nil { if err != nil {
Logger(err.Error()) Logger(err.Error())
} }

View file

@ -1,4 +1,4 @@
package functions package utils
import ( import (
"encoding/json" "encoding/json"

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>EveryNasa</title> <title>Starlio</title>
<link rel="icon" href="/image/icons/favicon.png"> <link rel="icon" href="/image/icons/favicon.png">
</head> </head>
<style> <style>

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>EveryNasa</title> <title>Starlio</title>
<link rel="icon" href="/static/image/icons/favicon.png"> <link rel="icon" href="/static/image/icons/favicon.png">
<style> <style>
lottie-player { lottie-player {

View file

@ -1,15 +0,0 @@
package page
import (
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2"
)
func About(c *fiber.Ctx) error {
con := functions.Connected()
if con == false {
return c.SendFile("./web/errors/500.html")
}
return c.SendFile("./web/src/about.html")
}

File diff suppressed because one or more lines are too long

View file

@ -1,15 +0,0 @@
package page
import (
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2"
)
func Favorite(c *fiber.Ctx) error {
con := functions.Connected()
if con == false {
return c.SendFile("./web/errors/500.html")
}
return c.SendFile("./web/src/favorite.html")
}

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>EveryNasa</title> <title>Starlio</title>
<link rel="icon" href="/static/image/icons/favicon.png"> <link rel="icon" href="/static/image/icons/favicon.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
@ -12,7 +12,7 @@
<nav class="navbar navbar-expand-lg bg-dark navbar-dark"> <nav class="navbar navbar-expand-lg bg-dark navbar-dark">
<div class="container-fluid"> <div class="container-fluid">
<a class="navbar-brand" href="/" draggable="false"> <a class="navbar-brand" href="/" draggable="false">
<img src="/static/image/icons/favicon.png" width="45" alt="EveryNasa"> <img src="/static/image/icons/favicon.png" width="45" alt="Starlio">
</a> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
@ -60,7 +60,6 @@
<script src="https://code.jquery.com/jquery-3.6.1.min.js"></script> <script src="https://code.jquery.com/jquery-3.6.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<script src="/static/scripts/analytics.js" type="module"></script>
<script src="/static/scripts/gallery.js" type="application/javascript"></script> <script src="/static/scripts/gallery.js" type="application/javascript"></script>
<script type="application/javascript"> <script type="application/javascript">
$(document).ready(function () { $(document).ready(function () {

View file

@ -1,15 +0,0 @@
package page
import (
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2"
)
func Gallery(c *fiber.Ctx) error {
con := functions.Connected()
if con == false {
return c.SendFile("./web/errors/500.html")
}
return c.SendFile("./web/src/gallery.html")
}

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>EveryNasa</title> <title>Starlio</title>
<link rel="icon" href="/static/image/icons/favicon.png"> <link rel="icon" href="/static/image/icons/favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
@ -16,7 +16,7 @@
<nav class="navbar navbar-expand-lg bg-dark navbar-dark"> <nav class="navbar navbar-expand-lg bg-dark navbar-dark">
<div class="container-fluid"> <div class="container-fluid">
<a class="navbar-brand" href="/"> <a class="navbar-brand" href="/">
<img src="/static/image/icons/favicon.png" width="45" alt="EveryNasa"> <img src="/static/image/icons/favicon.png" width="45" alt="Starlio">
</a> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
@ -63,8 +63,8 @@
<div class="toast-container position-fixed bottom-0 end-0 p-3"> <div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true"> <div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header"> <div class="toast-header">
<img src="/static/image/icons/favicon.png" class="rounded me-2" alt="EveryNasa" width="30"> <img src="/static/image/icons/favicon.png" class="rounded me-2" alt="Starlio" width="30">
<strong class="me-auto" style="color: black;">EveryNasa</strong> <strong class="me-auto" style="color: black;">Starlio</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button> <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div> </div>
<div class="toast-body" style="color: black;"></div> <div class="toast-body" style="color: black;"></div>
@ -75,7 +75,6 @@
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.10.0/lottie.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.10.0/lottie.min.js"></script>
<script src="/static/scripts/gallery.js" type="application/javascript"></script> <script src="/static/scripts/gallery.js" type="application/javascript"></script>
<script src="/static/scripts/analytics.js" type="module" id="analytics"></script>
<script type="application/javascript"> <script type="application/javascript">
startDate.setDate(startDate.getUTCDate() - 17); startDate.setDate(startDate.getUTCDate() - 17);
$(document).ready(function() { $(document).ready(function() {

View file

@ -1,15 +0,0 @@
package page
import (
"github.com/Redume/EveryNasa/functions"
"github.com/gofiber/fiber/v2"
)
func Settings(c *fiber.Ctx) error {
con := functions.Connected()
if con == false {
return c.SendFile("./web/errors/500.html")
}
return c.SendFile("./web/src/settings.html")
}

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>EveryNasa</title> <title>Starlio</title>
<link rel="icon" href="/static/image/icons/favicon.png"> <link rel="icon" href="/static/image/icons/favicon.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<link rel="stylesheet" href="/static/style/settings.css" type="text/css"> <link rel="stylesheet" href="/static/style/settings.css" type="text/css">
@ -11,7 +11,7 @@
<nav class="navbar navbar-expand-lg bg-dark navbar-dark"> <nav class="navbar navbar-expand-lg bg-dark navbar-dark">
<div class="container-fluid"> <div class="container-fluid">
<a class="navbar-brand" href="/" draggable="false"> <a class="navbar-brand" href="/" draggable="false">
<img src="/static/image/icons/favicon.png" width="45" alt="EveryNasa"> <img src="/static/image/icons/favicon.png" width="45" alt="Starlio">
</a> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
@ -47,7 +47,7 @@
</div> </div>
<div class="settings"> <div class="settings">
<p class="title"><strong>Auto-change of desktop wallpaper</strong></p> <p class="title"><strong>Auto-change of desktop wallpaper</strong></p>
<p class="desc">EveryNasa will automatically change the desktop wallpaper at startup as well as every day.</p> <p class="desc">Starlio will automatically change the desktop wallpaper at startup as well as every day.</p>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="settings_autoSetWallpaperSwitch"> <input class="form-check-input" type="checkbox" role="switch" id="settings_autoSetWallpaperSwitch">
<label class="form-check-label" for="settings_autoSetWallpaperTogglerName" id="settings_autoSetWallpaperTogglerName">Off</label> <label class="form-check-label" for="settings_autoSetWallpaperTogglerName" id="settings_autoSetWallpaperTogglerName">Off</label>
@ -55,23 +55,15 @@
</div> </div>
<div class="settings"> <div class="settings">
<p class="title"><strong>Create log files</strong></p> <p class="title"><strong>Create log files</strong></p>
<p class="desc">EveryNasa will create files in which errors will be written that will help developers when correcting errors.</p> <p class="desc">Starlio will create files in which errors will be written that will help developers when correcting errors.</p>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="settings_saveLoggSwitch"> <input class="form-check-input" type="checkbox" role="switch" id="settings_saveLoggSwitch">
<label class="form-check-label" for="settings_saveLoggTogglerName" id="settings_saveLoggTogglerName">Off</label> <label class="form-check-label" for="settings_saveLoggTogglerName" id="settings_saveLoggTogglerName">Off</label>
</div> </div>
</div> </div>
<div class="settings">
<p class="title"><strong>Enable Analytics</strong></p>
<p class="desc">EveryNasa will collect anonymous data about the use of the application.</p>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="settings_analyticsSwitch">
<label class="form-check-label" for="settings_analyticsTogglerName" id="settings_analyticsTogglerName">Off</label>
</div>
</div>
<div class="settings"> <div class="settings">
<p class="title"><strong>Create an application shortcut</strong></p> <p class="title"><strong>Create an application shortcut</strong></p>
<p class="desc">EveryNasa will create an application shortcut on your desktop.</p> <p class="desc">Starlio will create an application shortcut on your desktop.</p>
<button type="button" class="btn btn-outline-primary" id="createLabelButton">Create</button> <button type="button" class="btn btn-outline-primary" id="createLabelButton">Create</button>
</div> </div>
</header> </header>
@ -79,8 +71,8 @@
<div class="toast-container position-fixed bottom-0 end-0 p-3"> <div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true"> <div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header"> <div class="toast-header">
<img src="/static/image/icons/favicon.png" class="rounded me-2" alt="EveryNasa" width="30"> <img src="/static/image/icons/favicon.png" class="rounded me-2" alt="Starlio" width="30">
<strong class="me-auto" style="color: black;">EveryNasa</strong> <strong class="me-auto" style="color: black;">Starlio</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button> <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div> </div>
<div class="toast-body" style="color: black;"></div> <div class="toast-body" style="color: black;"></div>
@ -90,6 +82,5 @@
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>
<script src="/static/scripts/switch.js" type="application/javascript"></script> <script src="/static/scripts/switch.js" type="application/javascript"></script>
<script src="/static/scripts/createLabel.js" type="application/javascript"></script> <script src="/static/scripts/createLabel.js" type="application/javascript"></script>
<script src="/static/scripts/analytics.js" type="module" id="analytics"></script>
</body> </body>
</html> </html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -1,27 +0,0 @@
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.14.0/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.14.0/firebase-analytics.js";
$.ajax({
url: 'http://localhost:3000/api/get/settings',
type: 'GET',
dataType: 'json',
success: function (data) {
if (data["analytics"] === 1) {
const firebaseConfig = {
apiKey: "AIzaSyCeHtV4wmB9xJY4vfcpt7wX-WvlV-5S6v4",
authDomain: "everynasa-181a1.firebaseapp.com",
databaseURL: "https://everynasa-181a1-default-rtdb.firebaseio.com",
projectId: "everynasa-181a1",
storageBucket: "everynasa-181a1.appspot.com",
messagingSenderId: "369869513900",
appId: "1:369869513900:web:2ff68e57f95a36bf87ab09",
measurementId: "G-JN83RYFK56"
};
const app = initializeApp(firebaseConfig);
getAnalytics(app);
} else {
$("#analytics").remove();
}
}
})

View file

@ -8,9 +8,6 @@ $(document).ready(async function() {
const $loggingSwitch = $("#settings_saveLoggSwitch"); const $loggingSwitch = $("#settings_saveLoggSwitch");
const $loggingSwitchTogglerName = $("#settings_saveLoggTogglerName"); const $loggingSwitchTogglerName = $("#settings_saveLoggTogglerName");
const $analyticsSwitch = $("#settings_analyticsSwitch");
const $analyticsSwitchTogglerName = $("#settings_analyticsTogglerName");
getSettings().then((data) => { getSettings().then((data) => {
if (data["wallpaper"] === 1) { if (data["wallpaper"] === 1) {
$wallpaperSwitch.attr("checked", "true"); $wallpaperSwitch.attr("checked", "true");
@ -24,13 +21,9 @@ $(document).ready(async function() {
$loggingSwitch.attr("checked", "true"); $loggingSwitch.attr("checked", "true");
$loggingSwitchTogglerName.text("On"); $loggingSwitchTogglerName.text("On");
} }
if (data["analytics"] === 1) {
$analyticsSwitch.attr("checked", "true");
$analyticsSwitchTogglerName.text("On");
}
}); });
$wallpaperSwitch.click(async function() { $wallpaperSwitch.click(async function () {
$.ajax({ $.ajax({
url: "http://localhost:3000/api/get/settings", url: "http://localhost:3000/api/get/settings",
type: "GET", type: "GET",
@ -43,7 +36,7 @@ $(document).ready(async function() {
"wallpaper": 0, "wallpaper": 0,
}, },
success: function (data) { success: function (data) {
if(data["status"]) { if (data["status"]) {
$wallpaperSwitchTogglerName.text("Off"); $wallpaperSwitchTogglerName.text("Off");
$wallpaperSwitch.removeAttr("checked"); $wallpaperSwitch.removeAttr("checked");
@ -61,7 +54,7 @@ $(document).ready(async function() {
"wallpaper": 1, "wallpaper": 1,
}, },
success: function (data) { success: function (data) {
if(data["status"]) { if (data["status"]) {
$wallpaperSwitchTogglerName.text("On"); $wallpaperSwitchTogglerName.text("On");
$wallpaperSwitch.attr("checked", "true"); $wallpaperSwitch.attr("checked", "true");
@ -76,7 +69,7 @@ $(document).ready(async function() {
}) })
}); });
$startupSwitch.click(async function() { $startupSwitch.click(async function () {
$.ajax({ $.ajax({
url: "http://localhost:3000/api/get/settings", url: "http://localhost:3000/api/get/settings",
type: "GET", type: "GET",
@ -125,7 +118,7 @@ $(document).ready(async function() {
}); });
}); });
$loggingSwitch.click(async function() { $loggingSwitch.click(async function () {
$.ajax({ $.ajax({
url: "http://localhost:3000/api/get/settings", url: "http://localhost:3000/api/get/settings",
type: "GET", type: "GET",
@ -138,7 +131,7 @@ $(document).ready(async function() {
"save_logg": 0, "save_logg": 0,
}, },
success: function (data) { success: function (data) {
if(data["status"]) { if (data["status"]) {
$loggingSwitchTogglerName.text("Off"); $loggingSwitchTogglerName.text("Off");
$loggingSwitch.removeAttr("checked"); $loggingSwitch.removeAttr("checked");
@ -156,7 +149,7 @@ $(document).ready(async function() {
"save_logg": 1, "save_logg": 1,
}, },
success: function (data) { success: function (data) {
if(data["status"]) { if (data["status"]) {
$loggingSwitchTogglerName.text("On"); $loggingSwitchTogglerName.text("On");
$loggingSwitch.attr("checked", "true"); $loggingSwitch.attr("checked", "true");
@ -170,62 +163,8 @@ $(document).ready(async function() {
}, },
}); });
}); });
$analyticsSwitch.click(async function() {
$.ajax({
url: "http://localhost:3000/api/get/settings",
type: "GET",
success: function (data) {
if (data["analytics"] === 1) {
$.ajax({
url: "http://localhost:3000/api/update/settings",
type: "POST",
data: {
"analytics": 0,
},
success: function (data) {
if(data["status"]) {
$analyticsSwitchTogglerName.text("Off");
$analyticsSwitch.removeAttr("checked");
$("#analytics").remove();
toast(data.message);
} else {
toast("Failed to apply settings.");
}
},
});
} else {
$.ajax({
url: "http://localhost:3000/api/update/settings",
type: "POST",
data: {
"analytics": 1,
},
success: function (data) {
if(data["status"]) {
$analyticsSwitchTogglerName.text("On");
$analyticsSwitch.attr("checked", "true");
$("body").append("<script src='/static/scripts/analytics.js' type='module' id='analytics'></script>")
toast(data.message);
} else {
toast("Failed to apply settings.");
}
},
});
}
},
});
});
}); });
/**
* @param {String} message
*/
function toast(message) { function toast(message) {
if (message === null) { if (message === null) {
return "Required parameter 'message' is missing."; return "Required parameter 'message' is missing.";
@ -237,10 +176,6 @@ function toast(message) {
toast.show(); toast.show();
} }
/**
* @param {Number} i
*/
function editStartup(i) { function editStartup(i) {
if (i !== 1 || i !== 0 || i === null) { if (i !== 1 || i !== 0 || i === null) {
return "Required parameter 'i' is missing."; return "Required parameter 'i' is missing.";

View file

@ -10,8 +10,8 @@
"#1": { "#1": {
"0409": { "0409": {
"identity": { "identity": {
"name": "EveryNasa", "name": "Starlio",
"version": "2.3.2" "version": "2.3.3"
}, },
"description": "Automatic space wallpaper from Nasa", "description": "Automatic space wallpaper from Nasa",
"minimum-os": "win10", "minimum-os": "win10",
@ -44,12 +44,12 @@
"CompanyName": "Redume", "CompanyName": "Redume",
"FileDescription": "", "FileDescription": "",
"FileVersion": "3.2.1", "FileVersion": "3.2.1",
"InternalName": "EveryNasa", "InternalName": "Starlio",
"LegalCopyright": "Redume", "LegalCopyright": "Redume",
"LegalTrademarks": "", "LegalTrademarks": "",
"OriginalFilename": "EveryNasa.exe", "OriginalFilename": "Starlio.exe",
"PrivateBuild": "", "PrivateBuild": "",
"ProductName": "EveryNasa", "ProductName": "Starlio",
"ProductVersion": "2.3.2", "ProductVersion": "2.3.2",
"SpecialBuild": "" "SpecialBuild": ""
} }

View file

@ -1,19 +1,19 @@
{ {
"product": "EveryNasa", "product": "Starlio",
"company": "Redume", "company": "Redume",
"license": "LICENSE", "license": "LICENSE",
"upgrade-code": "4165e562-ab60-4ac2-b27b-df2d62548dd9", "upgrade-code": "4165e562-ab60-4ac2-b27b-df2d62548dd9",
"files": { "files": {
"guid": "c68b679d-8199-4036-8ead-d509fad132c8", "guid": "c68b679d-8199-4036-8ead-d509fad132c8",
"items": [ "items": [
"EveryNasa.exe", "Starlio.exe",
"LICENSE" "NOTICE"
] ]
}, },
"directories": [ "directories": [
"api", "api",
"web", "web",
"functions" "utils"
], ],
"env": { "env": {
"guid": "24554370-7366-4725-8509-7aebb35da25a", "guid": "24554370-7366-4725-8509-7aebb35da25a",
@ -32,9 +32,9 @@
"guid": "f2fb0dac-ddda-4c8e-bba4-3eb377150cde", "guid": "f2fb0dac-ddda-4c8e-bba4-3eb377150cde",
"items": [ "items": [
{ {
"name": "EveryNasa", "name": "Starlio",
"description": "Automatic space wallpaper from Nasa", "description": "Automatic space wallpaper from NASA",
"target": "[INSTALLDIR]EveryNasa.exe", "target": "[INSTALLDIR]Starlio.exe",
"wdir": "INSTALLDIR", "wdir": "INSTALLDIR",
"arguments": "", "arguments": "",
"icon": "web/static/image/icons/icon.ico" "icon": "web/static/image/icons/icon.ico"
@ -42,9 +42,9 @@
] ]
}, },
"choco": { "choco": {
"description": "Automatic space wallpaper from Nasa", "description": "Automatic space wallpaper from NASA",
"project-url": "https://github.com/Redume/EveryNasa", "project-url": "https://github.com/Redume/Starlio",
"tags": "Wallpaper, Nasa, go, auto-wallpaper", "tags": "Wallpaper, NASA, go, auto-wallpaper",
"license-url": "https://github.com/Redume/EveryNasa/blob/main/LICENSE" "license-url": "https://github.com/Redume/Starlio/blob/main/NOTICE"
} }
} }