1
1
mirror of https://github.com/usememos/memos.git synced 2024-12-25 12:23:09 +03:00
Commit Graph

1176 Commits

Author SHA1 Message Date
Athurg Gooth
218009a5ec
fix: wrong position of UsageStatItem's popup ()
* fix: wrong position of UsageStatItem's popup

* Replace TAB into Space for eslint

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2023-05-12 22:07:53 +08:00
Lincoln Nogueira
5340008ad7
feat: improve Windows support ()
* Add preliminar Windows support for both
development and production environments.

Default profile.Data will be set to "C:\ProgramData\memos" on Windows.
Folder will be created if it does not exist, as this behavior is
expected for Windows applications.

System service installation can be achieved with third-party tools,
explained in docs/windows-service.md.

Not sure if it's worth using https://github.com/kardianos/service
to make service support built-in.

This could be a nice addition alongside  (add Windows artifacts)

* feat: improve Windows support

- Fix local file storage path handling on Windows

- Improve Windows dev script
2023-05-10 08:03:55 +08:00
CorrectRoadH
700fe6b0e4
fix: return pinned status after edit ()
* stash

* query pinned status after patch

* eslint

* refactor query

* eslint

* process specify case

* add test

* Update memo.go
2023-05-09 09:03:09 +08:00
boojack
9b8d69b2dd
chore: add vacuum memo relation to dev guard ()
* chore: add vacuum memo relation to dev guard

* chore: update
2023-05-09 09:02:59 +08:00
Zeng1998
84546ff11c
chore: show server name instead of "MEMOS" () 2023-05-09 08:24:13 +08:00
Zeng1998
885a0ddad0
chore: add size for s3 resource () 2023-05-09 08:17:26 +08:00
Lincoln Nogueira
3b76c6792c
feat: add preliminar Windows support ()
Add preliminar Windows support for both
development and production environments.

Default profile.Data will be set to "C:\ProgramData\memos" on Windows.
Folder will be created if it does not exist, as this behavior is
expected for Windows applications.

System service installation can be achieved with third-party tools,
explained in docs/windows-service.md.

Not sure if it's worth using https://github.com/kardianos/service
to make service support built-in.

This could be a nice addition alongside  (add Windows artifacts)
2023-05-09 08:16:38 +08:00
jonny
4605349bdc
chore: update Chinese name translation () 2023-05-06 07:36:22 +08:00
Stephen Zhou
ff447ad22b
feat: support file sorting when uploading () 2023-05-03 19:18:29 +08:00
Stephen Zhou
c081030d61
chore: lock pnpm version () 2023-05-03 19:14:21 +08:00
boojack
e3496ac1a2
refactor: memo editor components () 2023-05-03 19:13:37 +08:00
boojack
8911ea1619
chore: update related time format ()
chore: update related time
2023-05-02 08:54:51 +08:00
boojack
34700a4c52
chore: check allow sign up setting in sso () 2023-05-02 08:45:03 +08:00
boojack
b6564bcd77
feat: implement memo relation server () 2023-05-01 16:09:41 +08:00
Peng Ding
6e6aae6649
feat: update zh-Hans translations and minor fixes in locale_updater.py ()
* update zh-Hans translations

* minor update

* update instruction part

* print json_value for debugging purpose

* update post requests related

* machine translate with chunks to get around {{field}}
2023-05-01 13:27:08 +08:00
João Nuno Mota
b98f85d8a7
feat: add infinite scroll for memos ()
Add infinite scroll for memos on home
2023-05-01 13:26:15 +08:00
João Nuno Mota
3314fe8b0e
fix: failed eslint checks () 2023-05-01 08:38:35 +08:00
powersee
f12163bc94
feat: add linux/arm/v7 to docker build action () 2023-04-29 00:40:15 +08:00
CorrectRoadH
f7a1680f72
fix: only delete last file when select multiple files ()
* fix the bug can't delete multiple files 

* using useEvent instead of useRef

* delete unused code

* delete unused code

* change hook file name

* refactor the useEvent

* delete unnecessary export

* fix import

* Apply suggestions from code review

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-04-28 16:17:08 +00:00
boojack
4603f414db
chore: add system setting cache () 2023-04-28 00:02:54 +08:00
deeshu
884dca20b3
fix: reappearing of dialog should add body scrolling class ()
When dialog is reappeared after being in a hidden state. Then reappeaning should block further body scrolling for consistent UX.
2023-04-27 07:16:15 +08:00
Max Malm
dbb544dc92
feat: read content from search params () 2023-04-27 07:15:40 +08:00
deeshu
3fad718807
fix: memo content availability for visitor mode () 2023-04-26 21:57:01 +08:00
boojack
fab8a71fd2
feat: implement memo relation store ()
* feat: implement memo relation store

* chore: update
2023-04-25 23:27:38 +08:00
Barry
7776a6b7c6
docs: update readme with MemosGallery ()
- add: https://github.com/BarryYangi/MemosGallery

A simple gallery static page based on the memos api, I think it might be useful for some people, so I just post it up. Close this if not necessary.
2023-04-25 22:27:02 +08:00
boojack
cd6ab61c2d
chore: add memo_relation () 2023-04-25 22:26:45 +08:00
_Jellen
00f69d683a
feat: update Korean translation ()
Update Korean translation

- add missing keys
- polish some translations
- remove trailing whitespaces
2023-04-23 20:13:34 +08:00
boojack
0e70de4003
chore: split memo resource api () 2023-04-22 10:42:24 +08:00
boojack
35efa927b6
chore: update readme with docs () 2023-04-22 10:25:32 +08:00
Antzed
1ff03e87c2
docs: upgrade on fly.io () 2023-04-22 09:34:36 +08:00
boojack
edf934efbb
chore: update memo style () 2023-04-21 14:46:41 +08:00
-Shiken-
d0815f586e
feat: update zh-tw translation to latest file format ()
* update zh-tw translation to latest file format

* Update zh-Hant.json

* Update web/src/locales/zh-Hant.json

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-04-19 20:22:23 +08:00
Yang
685a23bce8
feat: add auto collapse feature for all memos issue ()
* add auto collapse feature

* fix some styles

* pass eslint

---------

Co-authored-by: liyang <liyangg@umich.edu>
2023-04-18 10:05:36 +08:00
boojack
0aa7085303
chore: add enclosure to rss () 2023-04-17 23:26:56 +08:00
boojack
994d5dd891
feat: server tests ()
* feat: server tests

* chore: update
2023-04-17 21:34:59 +08:00
deeshu
e62a94c05a
feat: hiding dialog using X button should remove class "overflow-hidden" ()
Hiding dialogs result in the body to stay frozen due to mounting behaviour of the dialog, but using 'X' button hides the dialog and won't let user scroll any further. Removing overflow behaviour during hiding procedure will improve User Experience.
2023-04-17 20:13:33 +08:00
Manu
2b83572641
fix: the broken install docs link () 2023-04-17 19:00:13 +08:00
boojack
5f8aae69e4
chore: update save button style () 2023-04-16 15:47:01 +08:00
boojack
73b8d1dd99
fix: revert hide ask ai button () 2023-04-16 10:55:44 +08:00
boojack
58fa00079b
chore: update version to 0.12.2 () 2023-04-16 10:40:21 +08:00
boojack
3060dafb45
chore: update resource link template () 2023-04-16 10:31:03 +08:00
boojack
5cb436174d
chore: remove search key binding () 2023-04-16 10:03:33 +08:00
boojack
541fd9c044
chore: update window resize listener () 2023-04-16 10:00:49 +08:00
boojack
7d6934d00c
fix: rss link () 2023-04-16 09:51:03 +08:00
João Nuno Mota
2c328a4540
feat: hide ask ai button when key is empty ()
* Add option to hide Ask AI and update dev version

* Fix formatting according to eslint

* Replace option to hide Ask AI with auto hiding based on config

* Fix golangci-lint errors

* Remove showAskAI logic from OpenAPI
2023-04-16 00:54:33 +08:00
boojack
648634d376
chore: use pnpm ()
* chore: use pnpm

* chore: update
2023-04-16 00:47:40 +08:00
Fog3211
a654a1cb88
fix: toast overload max size error ()
Co-authored-by: Fog3211 <23151576+Fog3211@users.noreply.github.com>
2023-04-16 00:39:31 +08:00
boojack
ef02519e72
chore: regenerate yarn lock file () 2023-04-15 09:12:45 +08:00
Lincoln Nogueira
557278fac0
feat: improve i18n support as a whole ()
* feat: improve i18n support as a whole

- Remove dayjs in favor of /helpers/datetime.ts, which uses
Intl.DateTimeFormat and Date. Dayjs is not exactly i18n friendly
and has several locale related opened issues.

- Move/refactor date/time code from /helpers/utils.ts to
/helpers/datetime.ts.

- Fix Daily Review weekday not changing according to selected date.

- Localize Daily review weekday and month.

- Load i18n listed strings from /locales/{locale}.json in a dynamic way.
This makes much easier to add new locales, by just adding a properly
named json file and listing it only in /web/src/i18n.ts and
/api/user_setting.go.

- Fallback languages are now set in /web/src/i18n.ts.

- Full language codes are now preffered, but they fallback to 2-letter
codes when not available.

- The locale dropdown is now populated dynamically from the available
locales. Locale names are populated by the browser via
Intl.DisplayNames(locale).

- /web/src/i18n.ts now exports a type TLocale from availableLocales
array. This is used only by findNearestLanguageMatch(). As I was unable
to use this type in ".d.ts" files, I switched the Locale type from
/web/src/types/i18n.d.ts to string.

- Move pretty much all hardcoded text strings to i18n strings.

- Add pt-BR translation.

- Remove site.ts and move its content to a i18n string.

- Rename zh.json to zh-Hans.json to get the correct language name on
selector dropdown.

- Remove pt_BR.json and replace with pt-BR.json.

- Some minor layout spacing fixes to accommodate larger texts.

- Improve some error messages.

* Delete .yarnrc.yml

* Delete package-lock.json

* fix: 158:28  error  Insert `⏎`  prettier/prettier
2023-04-15 08:56:03 +08:00
Zeng1998
5652bb76d4
fix: incorrect date parsing ()
* fix: incorrect date parsing

* fix eslint
2023-04-15 00:54:48 +08:00