1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-04-25 12:03:12 +00:00

147 Commits

Author SHA1 Message Date
osmarks
132c1a0572 full text search, better metadata 2025-03-07 10:26:46 +00:00
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
Timur Ismagilov
d1bf1f76eb Offer to pass -create-admin option if no admins were found
Implements: #218
2024-06-01 23:43:26 +03:00
Umar Getagazov
97df77d158 go fmt 2022-09-14 10:39:37 +03:00
Umar Getagazov
ab848247c9 Change version package API 2022-09-14 10:38:36 +03:00
Timur Ismagilov
d2891da3e1 Use version.FormatVersion in the console printout
The only manual version place left is the docs.
2022-09-04 21:49:31 +03:00
Timur Ismagilov
c89376bad8 Change version to 1.12
It's funny how despite all those tricky tricks made previously, manual changes to the version number are still to be made. Do we really need those tricky tricks though?
2022-09-03 20:39:17 +03:00
Timur Ismagilov
0e5fd60b9d Admin: Get rid of QTPL templates 2022-08-06 22:33:37 +05:00
Timur Ismagilov
b1cdb1e279 Delete package views
All the remaining QTPL files were spread across the codebase. The plan is to get rid of them step by step and migrate to the new l10n approach, all based on Go std templates.
2022-08-06 16:35:17 +05:00
Timur Ismagilov
9713c18b6b Backlinks: Fix the bug 2022-06-10 18:45:27 +03:00
Timur Ismagilov
e4d0543afc Change version to 1.11.0 2022-06-05 15:36:58 +03:00
Timur Ismagilov
b7d524880f Interwiki: Implement /interwiki
It just shown what entries there are. It will let administrators modify it later.
2022-05-27 16:43:40 +03:00
Timur Ismagilov
ac1391e64a Interwiki: Start implementing 2022-05-22 12:25:22 +03:00
Timur Ismagilov
33c8192bb3 Write heading migrator 2022-05-20 13:17:53 +03:00
Timur Ismagilov
4035d4253a Do not print the git dir path 2022-05-20 12:22:44 +03:00
Timur Ismagilov
03fbf2f97f Change version to 1.10.0 2022-04-21 17:39:23 +03:00
Timur Ismagilov
2dcb1a5fe7 Backlinks: Isolate 2022-04-02 19:58:57 +03:00
Timur Ismagilov
f9857768b7 Categories: Rename exported functions 2022-04-02 01:01:54 +03:00
Timur Ismagilov
3dad3a3a4f Move package categories to the root level 2022-04-01 22:52:38 +03:00
Timur Ismagilov
a8b3e3d43a Implement viewutil.Base 2022-03-29 23:59:36 +03:00
Timur Ismagilov
b87ed40425 Change version to 1.9.0 2022-03-26 18:54:43 +03:00
Timur Ismagilov
f5cbd5622d Categories: Show pre-populated categories
They are useless now, and cannot be edited. Also, not properly styled. You get the idea though.
2022-03-19 23:57:33 +03:00
Timur Ismagilov
74099922a3 Update version 2022-02-19 12:18:45 +03:00
Timur Ismagilov
86d1a00bfc Implement the rocket link migration algorithm 2022-02-01 15:11:50 +05:00
Timur Ismagilov
000dca0cda Change version to 1.8.0
The release is soon...
2022-01-28 00:28:00 +05:00
Umar Getagazov
3f7de07da9
Replace go-localize with go embed-based system
This has several advantages over using an external CLI tool to generate
the files, such as having fewer dependencies, less generated files bloat
and more flexibility over the localization code. "Sadly", this solution
doesn't check for validity of JSON files at compile-time (the only
advantage of using an external tool such as go-localize). However, I
easily fixed this huge "issue" by making the program crash at startup if
any locale files are invalid.

Also, no more "go-localize removed from go.mod" "go-localize added to
go.mod" "go-localize removed from go.mod" spam. A utility for making
sure all translation stay in sync soon! (not sure where to put it)
2022-01-08 22:44:37 +07:00
Timur Ismagilov
1f36af66a5 Move backlinks stuff to a separate module 2021-12-21 00:08:21 +03:00
Timur Ismagilov
f32a750260 Change version: 1.6.0 ➡️ 1.7.0 2021-11-11 01:44:00 +03:00
Umar Getagazov
8da0ef1e4f Don't require to install go generate dependencies 2021-11-10 20:14:39 +07:00
Timur Ismagilov
c8c98a871d Increment version 2021-11-01 23:42:08 +05:00
Elias Bomberger
924b011e06 reorganize the history package (and rewrite some parts with qtpl)
start work on grouping edits in feeds
2021-10-22 22:15:48 -04:00
Mikhail Chekan
0780131c00 Initial l18n support 2021-09-27 16:45:23 +08:00
Mikhail Chekan
04124f721a Tidy up indexing routine (a little bit) 2021-09-05 15:16:07 +08:00
Mikhail Chekan
1c1260569b Implement async backindex update 2021-09-01 19:25:47 +05:00
Mikhail Chekan
820de6a0aa Implement backlinks core (index, i12n and viewing) 2021-09-01 19:25:47 +05:00
Timur Ismagilov
9f48ded254 Dump version 2021-09-01 17:19:39 +03:00
Timur Ismagilov
80112ad188 Dump version 2021-08-01 15:40:28 +05:00
handlerug
6fdab4be34 Migrate to gorilla/mux for web needs
What a wonderful package!
2021-07-16 00:47:00 +07:00
handlerug
295c209472
Port -> listen address
It allows for more control and things like listening on Unix sockets or
binding to 127.0.0.1 rather than 0.0.0.0.

Config changes:
- "Port = 1737" changed to "ListenAddr = 127.0.0.1:1737"
- new env variable LISTEN_ADDR
2021-07-05 21:35:27 +07:00
handlerug
5dc5a97bdb
Bump the version 2021-07-01 19:22:39 +07:00
Timur Ismagilov
90cb3be0ac Remove the mention of indev uh oh 2021-07-01 17:15:59 +05:00
handlerug
7073f9bce0
Actually check for illegal username, pretty errors 2021-07-01 15:45:03 +07:00
handlerug
4e8dae3c80
Drop support for Gemini :(
My view on this: it's too restrictive for Gemini. If you want to host
something in Gemini, you can't just dumb your content down. And
Mycomarkup is too robust for Gemini—images, tables and inline formatting
can't really be adapted to Gemtext.
2021-06-23 21:02:49 +07:00
handlerug
a528a36068
Remove log.Fatal invokations from ReadConfigFile() 2021-06-23 21:01:35 +07:00
handlerug
317e3a2049
Config auto-creation, update port from arguments 2021-06-23 21:01:34 +07:00
handlerug
7c19fd57c9
Clean up unused files 2021-06-23 21:01:34 +07:00
handlerug
919f844468
Automatically init Git repo if not already 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