1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-03-10 13:38:20 +00:00

40 Commits

Author SHA1 Message Date
Timur Ismagilov
a4cc67cd74
Migrate from log to slog #109 (#255)
* Migrate httpd.go

* Migrate history and main

* Migrate hypview

* Migrate interwiki

* Migrate misc

* Migrate utils

* Migrate backlinks

* Migrate categories

* Reformat some imports

* Migrate hyphae

* Migrate migration

* Reformat more imports

* Migrate user

* Migrate shroom

* Migrate viewutil

* Migrate web

* Migrate others

* Migrate main

* Wording concerns
2024-09-07 23:55:39 +03:00
Timur Ismagilov
41733c50bd
New templates #117 (#236)
Didn't have the chance to migrate //all// templates just yet. We'll get there.

* Implement yet another template system

* Move orphans to the new system and fix a bug in it

* Link orphans in the admin panel

* Move the backlink handlers to the web package

* Move auth routing to web

* Move /user-list to the new system

* Move change password and translate it

* Move stuff

* Move admin-related stuff to the web

* Move a lot of files into internal dir

Outside of it are web and stuff that needs further refactoring

* Fix static not loading and de-qtpl tree

* Move tree to internal

* Keep the globe on the same line #230

* Revert "Keep the globe on the same line #230"

This reverts commit ae78e5e459b1e980ba89bf29e61f75c0625ed2c7.

* Migrate templates from hypview: delete, edit, start empty and existing WIP

The delete media view was removed, I didn't even know it still existed as a GET. A rudiment.

* Make views multi-file and break compilation

* Megarefactoring of hypha views

* Auth-related stuffs

* Fix some of those weird imports

* Migrate cat views

* Fix cat js

* Lower standards

* Internalize trauma
2024-09-07 21:22:41 +03:00
Umar Getagazov
ab848247c9 Change version package API 2022-09-14 10:38:36 +03:00
Umar Getagazov
8b3fd9b240 Fix -create-admin not working on non-POSIX systems 2022-08-20 17:48:23 +05:00
Umar Getagazov
f1342c0d75 Use the generated version string on /about 2022-08-17 11:21:54 +03:00
opsyne
2c5b609319
Add a version command (#159) 2022-08-17 11:13:57 +03:00
Timur Ismagilov
4ab9a88437 Remove some unused stuff 2022-02-20 13:11:29 +03:00
hugmouse
163fb4ef35 There is no need in type conversion here 2021-10-29 16:08:02 +07:00
Mikhail Chekan
85c936d94a Housekeeping with linter
'I do as the golint guides'
2021-10-02 01:14:26 +08:00
bouncepaw
5e450612a1 Mark user's source: local or telegram 2021-07-15 08:50:45 +00:00
handlerug
cfc413f1a9
Add a -listen-addr flag, remove LISTEN_ADDR/PORT 2021-07-06 02:47:07 +07:00
handlerug
9dfbcedd19
-port flag -> PORT variable
Don't rely on this! It'll be changed to something else, I'm just
cleaning things up. The preferred way is to set the port in the config
file.
2021-07-05 11:12:23 +07:00
handlerug
d4fea3d24a
Add -create-admin flag
It allows for interactive creation of admin account from the terminal
for new wikis. Because we have a chicken-and-egg problem here with the
user panel -- you need an admin account to appoint someone as an admin,
right?
2021-07-02 17:25:13 +07:00
handlerug
a9e7878741
Remove unused flags 2021-07-02 01:52:44 +07:00
handlerug
317e3a2049
Config auto-creation, update port from arguments 2021-06-23 21:01:34 +07:00
handlerug
235fba5007
Fix Usage message 2021-06-23 21:01:34 +07:00
handlerug
7b2423ec40
New structure 2021-06-23 21:01:34 +07:00
handlerug
2f7ea74866
Revert "Rename WikiDir to WikiGitDir"
This reverts commit 839b1e2448932766f58a4629593205a4fd6d8912.
2021-06-16 19:29:01 +07:00
Timur Ismagilov
839b1e2448 Rename WikiDir to WikiGitDir
Rhymes well with the forecoming Structure.
2021-06-15 01:30:17 +05:00
handlerug
839f8bc2d6
New static files system
assets.qtpl is no more! Now you can just add files to static/ folder,
make sure the extension is registered in static.go (a shortcoming
that'll be addressed in future Go versions), and you're done! It
searches the local file system first, then falls back to the files
embedded with the binary (in the static/ folder).
2021-06-12 20:58:04 +07:00
Timur Ismagilov
a1852d363e Refactor and document some stuff 2021-05-11 13:33:00 +05:00
Timur Ismagilov
5b4ff5ef68 Move all web-related stuff to a new module 2021-05-09 15:42:12 +05:00
Timur Ismagilov
662794dd59 Move config-related stuff to its own module 2021-05-09 14:36:39 +05:00
handlerug
989ed43455
Fix auth system not getting enabled 2021-04-28 17:12:05 +07:00
Timur Ismagilov
53981c28ca Move some file-related stuff to a separate module 2021-04-26 22:25:47 +05:00
Timur Ismagilov
bcdb38bd68 Implement registration 2021-04-26 21:29:41 +05:00
bouncepaw
9eff38fdc4 Add fields related to registration to the config 2021-04-12 19:26:49 +05:00
bouncepaw
e35643bb9d Add -print-example-config 2021-03-09 19:27:14 +05:00
bouncepaw
be19d19a5e Fix user credentials not being read 2021-03-07 19:58:37 +05:00
bouncepaw
0426c372de Support configuration files
See https://mycorrhiza.lesarbr.es/hypha/configuration for an example.
A copy of this example is stored at assets/config.ini.

Use option -config-path to pass the config file. Note that all other
CLI options have been removed. Some of them may be returned later.
Also note that no real testing has been done.
2021-03-06 14:40:47 +05:00
bouncepaw
ee02211b3e Start the Great Refactoring 2021-02-17 23:41:35 +05:00
bouncepaw
5cafaaa3d8 Add proof-of-concept Gemini output of /hypha/ 2021-02-09 19:35:02 +05:00
bouncepaw
100f5ada92 Add header links 2021-01-24 00:00:58 +05:00
bouncepaw
84545dd9f1 Rename -user-tree to -user-hypha 2021-01-23 21:37:29 +05:00
bouncepaw
e72ca863e3 Add /about page, remove -title option, add -name and -icon options 2021-01-23 18:45:17 +05:00
bouncepaw
b1f33c872c Make account system concurrent-safe and refactor it a little 2021-01-10 01:49:48 +05:00
bouncepaw
7b9375da39 Implement OpenGraph meta tags 2020-12-17 17:59:59 +05:00
bouncepaw
8810e9891d Implement RSS, Atom and JSON feeds and add a new flag 2020-12-08 20:15:32 +05:00
bouncepaw
c83ea6f356 Start implementing fixed authorization system 2020-11-13 23:45:42 +05:00
bouncepaw
de8af13098 Implement CLI args 2020-10-25 20:06:51 +05:00