1
1
mirror of https://github.com/usememos/memos.git synced 2025-01-06 06:38:05 +03:00
Commit Graph

317 Commits

Author SHA1 Message Date
boojack
0292f472e0
chore: add data empty placeholder () 2023-07-08 13:04:12 +08:00
Athurg Gooth
811c3e8844
fix: auto expand height of setting page () 2023-07-03 13:35:55 +08:00
boojack
847b4605f4
chore: update dark mode style () 2023-06-30 08:40:13 +08:00
boojack
6b3748e2a3
chore: update setting page styles ()
* chore: update setting page styles

* chore: update
2023-06-29 23:17:01 +08:00
boojack
11a385cda6
chore: update upgrade version view () 2023-06-03 14:32:04 +08:00
boojack
32e2f1d339
chore: update page routes ()
chore: update routers
2023-06-03 13:03:22 +08:00
boojack
dd8c10743d
feat: memo editor dialog ()
* feat: memo editor dialog

* chore: update mark

* chore: update
2023-05-30 20:23:26 +08:00
boojack
a07d5d38d6
feat: memo relation part1 ()
* feat: memo relation part1

* chore: update
2023-05-18 21:29:28 +08:00
boojack
e3496ac1a2
refactor: memo editor components () 2023-05-03 19:13:37 +08:00
boojack
edf934efbb
chore: update memo style () 2023-04-21 14:46:41 +08:00
boojack
5f8aae69e4
chore: update save button style () 2023-04-16 15:47:01 +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
boojack
df30304d00
chore: update share memo buttons () 2023-04-09 11:38:30 +08:00
boojack
91a24ef9ce
chore: update memo header ()
* chore: update memo header

* chore: update
2023-04-09 11:05:09 +08:00
boojack
8cdc662745
chore: update memo visibility display () 2023-04-07 08:53:20 +08:00
boojack
11cd9b21de
chore: update auth form () 2023-04-02 14:25:38 +08:00
boojack
d71bfce1a0
chore: add usage into heatmap () 2023-04-02 11:56:09 +08:00
boojack
2e14561bfc
chore: update logo assets () 2023-03-24 08:43:26 +08:00
Stephen Zhou
166e57f1ef
fix: image preview dialog overlapping ()
* fix: image preview dialog overlapping

* Update web/src/less/preview-image-dialog.less

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-03-23 11:57:21 +00:00
CoffDream
af3d3c2c9b
fix: daily review page & setting dialog style () 2023-03-21 09:55:53 +08:00
boojack
c189654cd9
chore: update resource dashboard style () 2023-03-15 23:29:43 +08:00
CorrectRoadH
0a66c5c269
feat: new resource dashboard ()
* feat: refator the file dashboard

* feat: support select resouce file

* feat: suppor delete select files

* feat: support share menu, implement rename and delete

* chore: change the color of hover

* chore: refator file dashboard to page

* feat: add i18n for button

* feat: beautify the button

* fix: the error position of button

* feat: only select when click circle instead of whole card

* feat: beautify file dashboard

* chore: factor the filecard code

* feat: using dropdown component intead of component

* feat: add i18n for delete selected resource button

* feat: delete the unused style of title

* chore: refactor file cover

* feat: support more type file cover

* feat: use memo to reduce unused computing in filecover

* feat: when no file be selected, click the delete will error

* feat: store the select resource id instead of source to save memory

* chore: delete unused code

* feat: refactor the file card

* chore: delete unused style file

* chore: change file to resource

* chore: delete unused import

* chore: fix the typo

* fix: the error of handle check click

* fix: the error of handle of uncheck

* chore: change the name of selectList to selectedList

* chore: change the name of selectList to selectedList

* chore: change the name of selectList to selectedList

* chore: delete unused import

* feat: support Responsive Design

* feat: min display two card in a line

* feat: adjust the num of a line in responsive design

* feat: adjust the num of a line to 6 when using md

* feat: add the color of hover source card when dark

* chore: refactor resource cover css to reduce code

* chore: delete unnessnary change

* chore: change the type of callback function

* chore: delete unused css code

* feat: add zh-hant i18n

* feat: change the position of buttons

* feat: add title for the icon button

* feat: add opacity for icon

* feat: refactor searchbar

* feat:move Debounce to search

* feat: new resource search bar

* feat: reduce the size of cover

* support file search

* Update web/src/pages/ResourcesDashboard.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>

* Update web/src/components/ResourceCard.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>

* chore: reduce css code

* feat: support lowcase and uppercase search

* chore: reserve the searchbar

* feat: refator resource Search bar

* chore: change the param name

* feat: resource bar support dark mode

* feat: beautify the UI of dashboard

* chore: extract positionClassName from actionsClassName

* feat: reduce the length of search bar

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-03-15 20:06:30 +08:00
Wujiao233
28242d3268
fix: expand btn display in front of menu ()
* Docker

* fix:expand btn display issue

* restore Dockerfile

* change Header z-index to 2

* Update web/src/less/memo-content.less

Co-authored-by: boojack <stevenlgtm@gmail.com>

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-03-14 08:39:07 +08:00
boojack
50f36e3ed5
chore: upgrade version to 0.11.2 () 2023-03-11 13:20:24 +08:00
boojack
7c92805aac
fix: daily review page style () 2023-03-11 10:08:36 +08:00
boojack
f3f0efba1e
feat: update page router () 2023-03-11 08:43:45 +08:00
boojack
ccdcd3d154
feat: fold memo when content overflow ()
* feat: fold memo when content overflow

* chore: update
2023-03-09 23:32:35 +08:00
boojack
f86816fea2
feat: use react-hot-toast () 2023-03-09 08:54:14 +08:00
boojack
390e29f850
chore: remove part of less files () 2023-03-08 22:05:43 +08:00
boojack
3a466ad2a1
chore: update style of home sidebar () 2023-03-08 21:56:28 +08:00
boojack
483c1d5782
feat: update responsible layout ()
* feat: update responsible layout

* chore: update
2023-03-08 09:00:10 +08:00
boojack
595dbdb0ec
feat: add root layout () 2023-03-06 21:13:35 +08:00
boojack
f7cd039819
chore: rename common to base component () 2023-03-05 23:08:02 +08:00
boojack
5d24fe189d
chore: update location store handler ()
* chore: update location store handler

* chore: update search bar
2023-03-05 19:50:50 +08:00
boojack
bf46a9af68
chore: add heat map to sidebar () 2023-03-05 01:03:37 +08:00
boojack
dd625d8edc
chore: update links reference () 2023-03-04 15:06:01 +08:00
boojack
6ab58f294e
feat: update home layout () 2023-03-04 13:49:53 +08:00
Dane Roelofs
4a59965d7a
fix: action button container not overflowing memo () 2023-03-01 22:05:02 +08:00
Dan Fiumara
4ab32d4c2c
fix: corners not rounded on memos-editor-wrapper ()
* Fixed corners on memos-editor-wrapper

* Remove change in Home.tsx

* Moved change to home.less
2023-03-01 13:38:33 +08:00
Stephen Zhou
3e7fbac926
fix: corner style after scaling () 2023-02-28 23:52:04 +08:00
Zeng1998
d81cf5cc1b
fix: z-index of image preview () 2023-02-27 19:50:26 +08:00
H3arn
a09b2c4eea
feat: use accent color when confirming deletion ()
- .final-confirm
2023-02-26 19:37:01 +08:00
boojack
6d2d322140
chore: show pinned memos in explore () 2023-02-23 19:59:18 +08:00
boojack
42d849abfc
chore: update explore header style () 2023-02-22 19:21:08 +08:00
boojack
b145d8b8a2
chore: update setting dialog style () 2023-02-19 21:12:16 +08:00
boojack
d0b8b076cf
feat: implement sign in with SSO ()
* feat: implement sign in with SSO

* chore: update

* chore: update

* chore: update
2023-02-19 09:50:30 +08:00
boojack
37f9c7c8d6
chore: update avatar max size () 2023-02-18 10:48:31 +08:00
boojack
bcee0bbf3a
feat: add avatar to user in frontend () 2023-02-18 10:00:46 +08:00
boojack
caf054bae7
chore: add beta badge to storage ()
* chore: add beta badge to storage

* chore: update
2023-02-16 21:21:39 +08:00
boojack
3394380ffa
chore: update storage components () 2023-02-14 22:45:22 +08:00