Commit Graph

978 Commits (4de18cfab1bf8258f953ed39b8321f9940cb6127)

Author SHA1 Message Date
David Angel 781b1f7b3a
chore: add classnames for easy logo/server name customizations via CSS. (#1828)
Update MemoDetail.tsx
2 years ago
Athurg Gooth e6c9f2a00e
feat: add support for download resource from link (#1800)
* Add support for download resource from link

* Parse external link and add file ext name from mime info

* Add zh-Hans locale for `download-link`

* fix typo on code and comments

* Update server/resource.go

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Athurg Gooth 5d06c8093c
fix: systemSetting in UI changed unexpectedly (#1812)
Fix systemSetting in UI changed unexpectedly

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
kakik0u c396cc9649
feat: add japanese locale (#1802)
* Add japanese

* Add japanese setting files

---------

Co-authored-by: barappe <121844712+barappe@users.noreply.github.com>
2 years ago
Athurg Gooth 77e8e9ebbd
revert: fix: add public base path (#1748) (#1775) (#1806)
This reverts commit d205a7683a.
2 years ago
c14c6b3786
fix: user default 'Basic Setting' should follow server's setting (#1795)
fix: user default 'Basic Setting' should follow system setting
2 years ago
boojack 11a385cda6
chore: update upgrade version view (#1791) 2 years ago
boojack 32e2f1d339
chore: update page routes (#1790)
chore: update routers
2 years ago
-Shiken- 2f905eed0d
chore: update zh-Hant.json (#1781)
* Update zh-Hant.json

follow these commits to complete zhTW translation:
96021e518a
8628d1e4b2
93d608f050
ce64894abe
845297ec03

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

Co-authored-by: Zeng1998 <acan.coder@gmail.com>

* Fix json format error

---------

Co-authored-by: Zeng1998 <acan.coder@gmail.com>
Co-authored-by: Athurg Gooth <github@gooth.org>
2 years ago
Athurg Gooth 55cf19aa2e
fix: copy-to-clipboard not works well in Safari (#1779)
* Fix copy-to-clipboard not works well in Safari

* Fix typescript type check failure

* Remove global copy inject in home page

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
boojack dd8c10743d
feat: memo editor dialog (#1772)
* feat: memo editor dialog

* chore: update mark

* chore: update
2 years ago
Gener d205a7683a
fix: add public base path (#1748) (#1775) 2 years ago
Athurg Gooth 7e4d71cf58
fix: infinite loop in home page (#1773)
Fix infinite loop in home page

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth 97df1a82c7
feat: add docker compose file for development (#1769)
* Add support to fetch devProxyServer from environment

* Add docker compose file for developer

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth 845297ec03
refactor: change all `Robot` to `Bot` (#1767)
* Change all `Robot` to `Bot`

* Change all `r` of `Bot` to `b`

* Change `Robot` to `bot` in comments

* Fix typo

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth ce64894abe
feat: add telegram proxy support (#1764)
* Add support for reverse proxy of telegram API

* Add Telegram API proxy hint

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
boojack e0e59c5831
feat: display memo with updated ts (#1760) 2 years ago
_Jellen 826541a714
feat: update korean localization (#1758) 2 years ago
boojack 2e34ce90a1
chore: upgrade version `0.13.1` (#1754) 2 years ago
GodMeowIceSun 93d608f050
feat(#1568): add "ask ai" section session splitting function (#1711)
* feat(#1568): Added "ask ai" section session splitting function

Added "ask ai" section session splitting function
Optimize the "ask ai" dialogue style

* fix(#1568): Fix wrong attribute "appearance"

* fix(#1568): Add ts type define

* fix(#1568): Add ts type define

* fix(#1568): Resolve the issue of components not being stretched when only user input is available

* feat(#1568): New session automatic switching function

* refactor(#1729): remove unused code

* feat(#1568): New Remove Session Function

New Remove Session Function
Rename some methods
2 years ago
boojack ec26a9702d
fix: sso templates (#1753) 2 years ago
boojack dbe8aa1d3a
chore: update telegram bot related section (#1750)
* chore: update telegram bot related section

* chore: update
2 years ago
Athurg Gooth 8628d1e4b2
feat: add Telegram bot config UI (#1747)
* Add retry wait for telegram.GetUpdates

* Add support to set telegram robot token from UI

* Change validator of UserSettingTelegramUserID

* Add support to set telegram user id from UI

* Fix typescript check

* Add validator for SystemSettingTelegramRobotTokenName

* Optimize error notice while config telegram params

* Change for review

* Fix telegram user id could not be empty

* Fix telegram robot could not be empty

* Fix for eslint (again)

* Update web/src/components/Settings/SystemSection.tsx

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack 523ef2bba5
chore: update demo banner style (#1743) 2 years ago
boojack 43819b021e
chore: add demo banner (#1739) 2 years ago
Athurg Gooth 5e792236af
fix: infinite loop while daily memos more than DEFAULT_MEMO_LIMIT (#1730)
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth 616b8b0ee6
feat: introduce publicid to filename template (#1713)
* Add support for `publicid` in PathTemplate

* Use `publicid` by default instead of `filename` in filesystem

* Fix blank string of `systemSettingLocalStoragePath` affect incorrectly

* Add ext name to compatible with OS's preview

* Optimize code for systemSettingLocalStoragePath empty

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth 3b1bab651a
fix: system memo visibility was replace by user's setting (#1707)
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Zeng1998 1e4a867a9a
fix: add thumbnail param only for internal link (#1701)
* fix: add thumbnail param using `URLSearchParams`

* update: add thumnail param only for internal link
2 years ago
CorrectRoadH 6bb0b4cd47
fix: pop search when touch textarea in Android Chrome (#1700)
* fix: pop search when touch textarea

* eslint
2 years ago
CorrectRoadH 56c6f603aa
fix: md without search icon (#1699) 2 years ago
boojack ae1d9adf65
fix: initial system locale (#1684) 2 years ago
boojack b40571095d
feat: update memo detail page (#1682)
* feat: update memo detail page

* chore: update
2 years ago
Athurg Gooth 2730b90512
feat: highlight the DatePicker's date (#1669)
Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Athurg Gooth 34913cfc83
feat: show thumbnail in resource dashboard (#1666)
* Add image thumbnail instead of an icon

* Change thumbnail size of dashboard to fixed

* Fix for eslint-checks

* Fix for eslint-checks

* Replace css with tailwind

* Remove the parent div used for style

* Show preview while click on the resource

* Change for review Suggested by @Zeng1998

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
boojack a07d5d38d6
feat: memo relation part1 (#1677)
* feat: memo relation part1

* chore: update
2 years ago
Athurg Gooth 041be46732
Add support for image thumbnail (#1641)
* Add a common function for resize image blob

* Auto generate thumbnail for image resources

* Auto thumbnail support for fetch image resources

* Add support for image thumbnail in view

* Fix missing error check

* Fix es-lint check

* Fix uncontrolled data used in path expression

* Remove thumbnail while origin resource been deleted

* Change the thumbnail's storage path

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
CorrectRoadH d72b4e9a98
feat: filter support plain link (#1657)
* fix: unexpected empty lines when copying-pasting

* add ref

* feat: support to filter plain link

* eslint

* fix the typo

* fix the typo

* unified the import path
2 years ago
boojack 2cc5691efd
chore: update memo relation types (#1658) 2 years ago
boojack 921d4b996d
chore: update help button style (#1656) 2 years ago
Lincoln Nogueira 96021e518a
feat: add max upload size setting to UI & UI improvements (#1646)
* 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 #1583 (add Windows artifacts)

* feat: improve Windows support

- Fix local file storage path handling on Windows

- Improve Windows dev script

* feat: add max upload size setting to UI & more

- feat: add max upload size setting to UI

- feat: max upload size setting is checked on UI during upload,
but also enforced by the server

- fix: overflowing mobile layout for Create SSO, Create Storage
and other Settings dialogs

- feat: add HelpButton component with some links to docs were appropriate

- remove LearnMore component in favor of HelpButton

- refactor: change some if/else to switch statements

- refactor: inline some err == nil checks

! Existing databases without the new setting 'max-upload-size-mib'
will show an upload error, but this can be user-fixed by simply
setting the value on system settings UI.

* improvements requested by @boojack
2 years ago
CorrectRoadH e1c809d6f1
fix: unexpected empty lines when copying-pasting (#1654) 2 years ago
Athurg Gooth 218009a5ec
fix: wrong position of UsageStatItem's popup (#1647)
* fix: wrong position of UsageStatItem's popup

* Replace TAB into Space for eslint

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Zeng1998 84546ff11c
chore: show server name instead of "MEMOS" (#1639) 2 years ago
jonny 4605349bdc
chore: update Chinese name translation (#1630) 2 years ago
Stephen Zhou ff447ad22b
feat: support file sorting when uploading (#1627) 2 years ago
Stephen Zhou c081030d61
chore: lock pnpm version (#1628) 2 years ago
boojack e3496ac1a2
refactor: memo editor components (#1625) 2 years ago
boojack 8911ea1619
chore: update related time format (#1621)
chore: update related time
2 years ago
Peng Ding 6e6aae6649
feat: update zh-Hans translations and minor fixes in locale_updater.py (#1615)
* 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}}
2 years ago
João Nuno Mota b98f85d8a7
feat: add infinite scroll for memos (#1614)
Add infinite scroll for memos on home
2 years ago
João Nuno Mota 3314fe8b0e
fix: failed eslint checks (#1616) 2 years ago
CorrectRoadH f7a1680f72
fix: only delete last file when select multiple files #1576 (#1578)
* fix the bug can't delete multiple files #1576

* 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>
2 years ago
deeshu 884dca20b3
fix: reappearing of dialog should add body scrolling class (#1602)
When dialog is reappeared after being in a hidden state. Then reappeaning should block further body scrolling for consistent UX.
2 years ago
Max Malm dbb544dc92
feat: read content from search params (#1607) 2 years ago
deeshu 3fad718807
fix: memo content availability for visitor mode (#1605) 2 years ago
_Jellen 00f69d683a
feat: update Korean translation (#1592)
Update Korean translation

- add missing keys
- polish some translations
- remove trailing whitespaces
2 years ago
boojack edf934efbb
chore: update memo style (#1581) 2 years ago
-Shiken- d0815f586e
feat: update zh-tw translation to latest file format (#1569)
* 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>
2 years ago
Yang 685a23bce8
feat: add auto collapse feature for all memos issue #1463 (#1550)
* add auto collapse feature

* fix some styles

* pass eslint

---------

Co-authored-by: liyang <liyangg@umich.edu>
2 years ago
deeshu e62a94c05a
feat: hiding dialog using X button should remove class "overflow-hidden" (#1555)
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.
2 years ago
boojack 5f8aae69e4
chore: update save button style (#1542) 2 years ago
boojack 73b8d1dd99
fix: revert hide ask ai button (#1539) 2 years ago
boojack 58fa00079b
chore: update version to `0.12.2` (#1538) 2 years ago
boojack 3060dafb45
chore: update resource link template (#1537) 2 years ago
boojack 5cb436174d
chore: remove search key binding (#1536) 2 years ago
boojack 541fd9c044
chore: update window resize listener (#1535) 2 years ago
João Nuno Mota 2c328a4540
feat: hide ask ai button when key is empty (#1515)
* 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
2 years ago
boojack 648634d376
chore: use pnpm (#1533)
* chore: use pnpm

* chore: update
2 years ago
Fog3211 a654a1cb88
fix: toast overload max size error (#1531)
Co-authored-by: Fog3211 <23151576+Fog3211@users.noreply.github.com>
2 years ago
boojack ef02519e72
chore: regenerate yarn lock file (#1530) 2 years ago
Lincoln Nogueira 557278fac0
feat: improve i18n support as a whole (#1526)
* 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
2 years ago
Zeng1998 5652bb76d4
fix: incorrect date parsing (#1527)
* fix: incorrect date parsing

* fix eslint
2 years ago
CorrectRoadH 81d4f01b7f
feat: add e2e test (#1486)
* add i18n

* add base e2e test

* add multiple test for e2e

* extract the funciton of write memo

* change test sturct

* deteled unused dir

* use fixture

* add fixture

* restruced the project

* feat: add workflow

* feat: change playwright test position

* feat: change playwright test position

* using yarn intead of npm

* change install method

* only enable sign in test

* adjust the order of test

* change report pos

* fix style of e2e workflow

* add review test

* unify locale

* randome write content

* change report pos

* reduce unused wait time

* reduce unused folder

* stash

* merge upstream locale

* change test name

* add test item

* change action name

* add lanuage setting

* add shotscreen

* change name of test

* fix the error of import dep

* fix the error of import dep

* fix the error of filename

* fix the format of workflow

* fix the name error of test case

* feat: change the describe of test case

* feat: remove unused test

* feat: change the fixtures name

* feat: remove unused config

* feat: change docker action

* feat: change the generate method

* feat: extrace screenshot

* feat: change extra path

* feat: change extra path

* feat: screenshot and upload

* feat: change upload filename

* feat: change login method

* feat: change e2e method

* feat: change e2e test

* feat: add wait for login

---------

Co-authored-by: CorrectRoadH <a778917369@gmail.comå>
2 years ago
Peng Ding 0020498c10
feat: update Chinese translations in zh.json and zh-Hant.json using locale_updater.py (#1506)
update zh.json and zh-Hant.json using locale_updater.py
2 years ago
_Jellen 66ed43cbcb
feat: update and refactor Korean translation data (#1505)
refactor and update ko.json
- added missing translation keys into ko.json
- synced the JSON key order of ko.json with en.json
- removed unused translation data
2 years ago
boojack df30304d00
chore: update share memo buttons (#1498) 2 years ago
boojack 91a24ef9ce
chore: update memo header (#1497)
* chore: update memo header

* chore: update
2 years ago
Luyu Cheng d11083d3b9
fix(css): reorder the font fallback list (#1495) (#1496) 2 years ago
boojack 680b8ede6c
chore: adjust header style (#1493) 2 years ago
boojack 4e023e2500
chore: add file type to audio (#1492)
* chore: add file type to audio

* chore: update
2 years ago
boojack 3eac19d258
chore: add ignore version upgrade setting (#1491) 2 years ago
boojack 8cdc662745
chore: update memo visibility display (#1485) 2 years ago
HappyZ 609366da6e
chore: add "copy link" for each memo (#1474) 2 years ago
boojack f48d91539e
chore: update locale file structure (#1478) 2 years ago
boojack cc23f69f66
chore: update import path (#1477) 2 years ago
Zeng1998 6ceafc1827
fix: unexpected reset of the storage setting (#1475) 2 years ago
boojack 6ff7cfddda
fix: return external link directly (#1465)
* fix: return external link directly

* chore: update
2 years ago
boojack 9ede3da882
chore: update learn more link (#1455) 2 years ago
boojack 836e496ee0
chore: allow remove user avatar (#1454) 2 years ago
boojack 4419b4d4ae
chore: update version and remove isDev flag (#1452)
* chore: update version and remove isDev flag

* chore: update
2 years ago
boojack 1cab30f32f
feat: add public id field to resource (#1451)
* feat: add public id field to resource

* feat: support reset resource link
2 years ago
boojack 4f2adfef7b
chore: update system setting name convention (#1448) 2 years ago
boojack 8a33290722
chore: update user setting key convention (#1447)
* chore: update user settng key convention

* chore: update
2 years ago
boojack 11cd9b21de
chore: update auth form (#1445) 2 years ago
boojack d71bfce1a0
chore: add usage into heatmap (#1443) 2 years ago
boojack 1ea65c0b60
chore: update logo (#1442)
* chore: update logo

* chore: update
2 years ago
thehijacker e3fc23ccf9
feat: updated Slovenian translation (#1440)
* Fixed some strings and typos

Checked on demo site and saw some string can be improved.

* Update LocaleSelect.tsx

Native name for language
2 years ago
boojack 0cddb358c1
chore: add Slovenian locale (#1437)
chore: add sl locale
2 years ago
thehijacker 741eeb7835
feat: added Slovenian translation. (#1436)
Add files via upload
2 years ago
CorrectRoadH 424f10e180
feat: request pagination for resource(#1425)
* feat: add support for resource page on frontend

* [WIP]feat: add backend support for limit and offset search

* feat: add reducer to add resource

* support fetch all resource when first search

* beautify the fetch ui

* restore file

* feat: add all resource before clear resource

* eslint

* i18n

* chore:change the nane

* chore: change the name of param

* eslint

* feat: setIsComplete to true when first loading resource fully

* fix the bug of fetch

* feat change finally to then

* feat: add await and async to clear and search

* feat: return all resource when fetch

* chore: change variable name

* Update web/src/pages/ResourcesDashboard.tsx

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

* fix missing const value

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack fab3dac70a
chore: remove `useListStyle` hook (#1434) 2 years ago
boojack 89ab57d738
refactor: update import prefix with alias (#1433) 2 years ago
Dmitry Shemin b03778fa73
feat: update RU i18n locale (#1422)
* feat: Fix i18n and RU locale

* fix: eslint issues

* change the position of deps

---------

Co-authored-by: CorrectRoadH <a778917369@gmail.com>
2 years ago
Xudong Cai d21abfc60c
feat: add URLSuffix resource option with S3 (#1428)
* feat: add URLSuffix resource option with S3

* feat: add URLSuffix resource option with S3

* fix: eslint
2 years ago
Xudong Cai 8eed9c267c
fix: logo img rounded (#1427)
rounded-full move to img tag
2 years ago
CorrectRoadH 3c2578f666
feat: limit the num of lines for filename (#1424)
* feat: limit the linenum of  filename

* change the implement of line-clamp
2 years ago
CorrectRoadH 526fbbba45
feat: empty selected resource when search resource (#1423)
* feat: empty selected resource when search resource

* eslint
2 years ago
CorrectRoadH 6b703c4678
feat: add empty placeholder when search result is empty (#1416)
* feat: add empty placeholder when search result is empty

* Update web/src/pages/ResourcesDashboard.tsx

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

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack dbb095fff4
chore: update list switch style (#1417) 2 years ago
CorrectRoadH adf01ed511
feat: add more resource cover icon (#1413)
* stash: file upload

* feat: add style button

* feat: add style of list

* feat: add checkbox for list

* feat: support file upload by drag

* feat: beautify the ui

* feat: support file upload

* stash

* fix: the resource is incorrectly when upload multiple files

* feat: beautify the ui

* chore: reduce unused line

* stash

* chore: deleted unused line

* chore: deleted unused line

* chore

* chore: change the function declare

* feat: support to prompt file is too large

* feat:drop prompt to cover all element

* fix: eslint

* fix: the name of i18n

* chore: refactor the import deps

* feat: beautify the ui

* feat: support the style of button

* feat: beautify the switch ui

* chore: refactor the component

* chore: refactor the resource item dropdown

* feat: use memo to reduce unused computing in drop

* feat: use memo to reduce the calc of resource list

* chore:change name

* Update web/src/locales/en.json

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

* chore: the import of  deps

* fix: the window size of fecting data

* feat: support to save the state of style

* remove pnpm-lock

* merge main

* chore: simpify the statement

* fix: delete conflict marker

* feat: add i18n for select

* feat:support dark mode

* eslint

* feat: add more file icon

* feat: delete the storage of resource style

* Update web/src/components/ResourceCover.tsx

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

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Stephen Zhou 17ca97ebd1
fix: avatar is not rounded (#1415) 2 years ago
CorrectRoadH 7d89fcc892
feat: add list style for resource dashboard (#1389)
* stash: file upload

* feat: add style button

* feat: add style of list

* feat: add checkbox for list

* feat: support file upload by drag

* feat: beautify the ui

* feat: support file upload

* stash

* fix: the resource is incorrectly when upload multiple files

* feat: beautify the ui

* chore: reduce unused line

* stash

* chore: deleted unused line

* chore: deleted unused line

* chore

* chore: change the function declare

* feat: support to prompt file is too large

* feat:drop prompt to cover all element

* fix: eslint

* fix: the name of i18n

* chore: refactor the import deps

* feat: beautify the ui

* feat: support the style of button

* feat: beautify the switch ui

* chore: refactor the component

* chore: refactor the resource item dropdown

* feat: use memo to reduce unused computing in drop

* feat: use memo to reduce the calc of resource list

* chore:change name

* Update web/src/locales/en.json

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

* chore: the import of  deps

* fix: the window size of fecting data

* feat: support to save the state of style

* remove pnpm-lock

* merge main

* chore: simpify the statement

* fix: delete conflict marker

* feat: add i18n for select

* feat:support dark mode

* eslint

* feat: delete the storage of resource style

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
_Jellen e84d562146
feat: update Korean translation (#1414)
add missing translation keys into ko.json
2 years ago
boojack 2e14561bfc
chore: update logo assets (#1407) 2 years ago
Stephen Zhou 166e57f1ef
fix: image preview dialog overlapping (#1405)
* fix: image preview dialog overlapping

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

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack 547f25178b
chore: add rss button in user menu (#1401) 2 years ago
Steven Yan 9c0a3ff83c
fix: the expand button's z-index is the same as Header (#1400)
fix: the expand button's z-index is higher than Header
2 years ago
CorrectRoadH 2ba54c9168
feat: upload file by drag and drop (#1388)
* stash: file upload

* feat: support file upload by drag

* feat: beautify the ui

* feat: support file upload

* stash

* fix: the resource is incorrectly when upload multiple files

* feat: beautify the ui

* chore: reduce unused line

* stash

* chore: deleted unused line

* chore: deleted unused line

* chore

* chore: change the function declare

* feat: support to prompt file is too large

* feat:drop prompt to cover all element

* fix: eslint

* fix: the name of i18n

* chore: refactor the import deps

* feat: beautify the ui

* Update web/src/locales/en.json

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

* chore: the import of  deps

* fix: the window size of fecting data

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Zeng1998 026fb3e50e
fix: markdown support in blockquote (#1394) 2 years ago
CoffDream af3d3c2c9b
fix: daily review page & setting dialog style (#1392) 2 years ago
CorrectRoadH 63e0716457
chore: fix typo (#1387) 2 years ago
Zeng1998 f3090b115d
feat: support local storage (#1383)
* feat: support local storage

* update

* update

* update

* update
2 years ago
boojack 573f07ec82
feat: support messages to ask AI (#1380) 2 years ago
Gerald 8b20cb9fd2
fix: make creation time a link to the detail page (#1379) 2 years ago
Zeng1998 7529296dd5
chore: remove {filetype} in path template (#1377)
* chore: remove {filetype} in path template

* fix go-static-check

* update
2 years ago
Zeng1998 7f44a73fd0
fix: show full content in detail page (#1375) 2 years ago
Zeng1998 eb835948b7
chroe: add ids for header elements (#1374)
* chroe: add id for header elements

* fix order of id and class
2 years ago
CorrectRoadH c04a31dcda
fix: the dropdown be coverd (#1368) 2 years ago
boojack e526cef754
fix: handle IME mode in editor (#1371)
* fix: handle IME mode in editor

* chore: update
2 years ago
远浅 2ba0dbf50b
refactor: use function findMatchingParser to reduce duplicate code (#1367)
* refactor: Use function findMatchingParser to reduce duplicate code

* chore: declare type Parser
2 years ago
CorrectRoadH 4ee8cf08c6
feat: allow resource title mutiple line (#1370) 2 years ago
CorrectRoadH f1f9140afc
fix: the incorrectly height of grid row in safari (#1366) 2 years ago
boojack c189654cd9
chore: update resource dashboard style (#1362) 2 years ago
CorrectRoadH 0a66c5c269
feat: new resource dashboard (#1346)
* 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>
2 years ago
远浅 e129b122a4
refactor: useTranslation in CreateTagDialog (#1356) 2 years ago
远浅 7f30e2e6ff
chore: fix typo (#1355) 2 years ago
Wujiao233 28242d3268
fix: expand btn display in front of menu (#1342)
* 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>
2 years ago
boojack 89053e86b3
chore: fix cover bg color (#1337) 2 years ago
boojack 50f36e3ed5
chore: upgrade version to `0.11.2` (#1336) 2 years ago
boojack ca6839f593
chore: remove editor shortcuts (#1334) 2 years ago
boojack e5cbb8cd56
refactor: openAI config system setting (#1333) 2 years ago
boojack 7c92805aac
fix: daily review page style (#1332) 2 years ago
boojack a9218ed5f0
refactor: filter store (#1331) 2 years ago
boojack f3f0efba1e
feat: update page router (#1330) 2 years ago
boojack ccdcd3d154
feat: fold memo when content overflow (#1327)
* feat: fold memo when content overflow

* chore: update
2 years ago
-Shiken- 25da3c073b
feat: update zh-tw translation to new file format (#1324) 2 years ago
远浅 6866b6c30d
fix: unified tag sorting logic (#1323) 2 years ago
boojack f86816fea2
feat: use react-hot-toast (#1321) 2 years ago
Aswath S 2428e6e190
feat: allow users to customize the refresh time for Daily Reviews (#1313)
* feat: Allow users to customize the refresh time for Daily Reviews

* feat: Allow users to customize the refresh time for Daily Reviews. Lint fix

* feat: Allow users to customize the refresh time for Daily Reviews. change daily review time offset to include only hour

* feat: Allow users to customize the refresh time for Daily Reviews. Retrigger to try CodeQL pass.

---------

Co-authored-by: Aswath S <aswath.s@thoughtworks.com>
2 years ago
Baptiste Roux 93609ca731
fix: update markdown hyperlink regex (#1315)
* fix: Update markdown hyperlink regex

* chore(lint): Remove unnecessary escape character
2 years ago
boojack 70a187cc18
chore: update ask AI trigger (#1316) 2 years ago
boojack 390e29f850
chore: remove part of less files (#1314) 2 years ago
boojack 3a466ad2a1
chore: update style of home sidebar (#1311) 2 years ago
boojack 483c1d5782
feat: update responsible layout (#1306)
* feat: update responsible layout

* chore: update
2 years ago
Jason Chen 65850dfd03
feat: auto focus search bar when sidebar is shown (close #1269) (#1304)
feat: auto focus search bar when sidebar is shown
2 years ago
Zeng1998 d1bafd66c8
feat: allow to filter memos with resources (#1299) 2 years ago
Xiang Jaywhen daa1e9edfb
fix: Ask-AI history list reversed when loading answer (#1301) 2 years ago
kimw 008d6a0c81
feat: add GitLab OAuth2 template (#1302) 2 years ago
远浅 7c5fae68fe
fix: navigate faild silently (#1300) 2 years ago
Yunwei Xiao c57cea1aaa
fix: fix the typo of openai (#1298) 2 years ago
boojack 595dbdb0ec
feat: add root layout (#1294) 2 years ago
Wujiao233 003161ea54
feat: support set openai api host (#1292)
* Docker

* feat: support set openai api host

* fix css

* fix eslint

* use API in backend & put host check in plugin/openai

* fix go-static-checks
2 years ago
Zeng1998 fd99c5461c
feat(s3): customize filenames via placeholders (#1285)
* feat(s3): customize filenames via placeholders

* fix go-static-checks

* add tips on the frontend

* fix eslint check

* remove yarn.lock

* remove Config.Path

* update tips

* fix

* update
2 years ago
Zeng1998 c1903df374
fix: correct the storage service state (#1288) 2 years ago
远浅 54374bca05
fix: missing prop key (#1291) 2 years ago
CorrectRoadH ddf1eb0219
feat: automatically change language on first launch (#1278)
* feat: automatically change language to browser language on first launch(#1238)

* Update web/src/store/module/global.ts

* chroe: rename languageCodeCovert to convertLanguageCodeToLocale

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Juskinbo 8c5ba63f8c
fix: overflow of dialog-content-container (#1277)
* fix: overflow of dialog-content-container

* fix: overflow of dialog-content-container
2 years ago
boojack f7cd039819
chore: rename common to base component (#1279) 2 years ago
boojack 5d24fe189d
chore: update location store handler (#1273)
* chore: update location store handler

* chore: update search bar
2 years ago
boojack bf46a9af68
chore: add heat map to sidebar (#1255) 2 years ago
boojack c6d43581f9
revert: Fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1251)
Revert "fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1213)"

This reverts commit 1b0629bf0f.
2 years ago
boojack e150599274
chore: upgrade version to `v0.11.1` (#1247) 2 years ago
boojack df04e852bf
feat: implement openai integration (#1245)
* feat: implement openai integration

* chore: update
2 years ago
boojack dd625d8edc
chore: update links reference (#1243) 2 years ago
boojack 6ab58f294e
feat: update home layout (#1242) 2 years ago
Alex Zhao 9d4bb5b3af
feat: add support for s3 path (#1233)
* add support for path

* fix typo and switch positions with Path and Bucket

* using path method instead of string concatenation
2 years ago
Mehmet Altuğ Akgül e062c9b4a7
feat: add Turkish Translation file (#1202)
* Created tr.json for Turkish Translation

* updated file for trLocale

* Updated for Turkish Locale

* Update i18n.ts

* Update i18n.ts

* Update package.json

* Update package.json

* Update i18n.d.ts

* Update user_setting.go

* Update package.json

* Update web/src/components/LocaleSelect.tsx

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

* Update package.json

* Update LocaleSelect.tsx

* Update LocaleSelect.tsx

* Update i18n.ts

* Update i18n.ts

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Jason Shawn D' Souza 1b0629bf0f
fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1213)
Updating regex to pick up edge case with parentheses
2 years ago
Thareek Anvar M e83ea7fd76
fix: login security issue (#1198)
* fix

* fix bug

* changes

* Revert "changes"

This reverts commit 2b2084c7bd.

* should close the toast if its error also

* no internal errors + sso

* change the text to Incorrect login credentials, please try again
2 years ago
Dane Roelofs 4a59965d7a
fix: action button container not overflowing memo (#1218) 2 years ago
远浅 71de6613d3
refactor: declare variable for devProxyServer (#1220) 2 years ago
Stephen Zhou e43e04b478
chore: fix unknown at rule @applyless(unknownAtRules) (#1221)
fix: Unknown at rule @applyless(unknownAtRules)
2 years ago
Dan Fiumara 4ab32d4c2c
fix: corners not rounded on memos-editor-wrapper (#1209)
* Fixed corners on memos-editor-wrapper

* Remove change in Home.tsx

* Moved change to home.less
2 years ago
Weblate (bot) 1f05b52c4e
chore: translations update from Hosted Weblate (#1196)
Translated using Weblate (Turkish)

Currently translated at 19.5% (41 of 210 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 33.3% (70 of 210 strings)

Translated using Weblate (Swedish)

Currently translated at 100.0% (210 of 210 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (210 of 210 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (210 of 210 strings)

Translated using Weblate (Turkish)

Currently translated at 1.4% (3 of 210 strings)

Translated using Weblate (Turkish)

Currently translated at 0.4% (1 of 210 strings)

Translated using Weblate (Turkish)

Currently translated at 0.0% (0 of 0 strings)

Added translation using Weblate (Turkish)

Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (210 of 210 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 91.4% (192 of 210 strings)









Translate-URL: https://hosted.weblate.org/projects/memos/web/es/
Translate-URL: https://hosted.weblate.org/projects/memos/web/nl/
Translate-URL: https://hosted.weblate.org/projects/memos/web/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/memos/web/sv/
Translate-URL: https://hosted.weblate.org/projects/memos/web/tr/
Translate-URL: https://hosted.weblate.org/projects/memos/web/zh_Hant/
Translation: memos/web

Co-authored-by: Felipe Nogueira <contato.fnog@gmail.com>
Co-authored-by: Jasper Platenburg <jasperdgp@outlook.com>
Co-authored-by: Luna Jernberg <droidbittin@gmail.com>
Co-authored-by: Onur Ravli <onur@ravli.co>
Co-authored-by: SiriYang <www.yangxinruei@qq.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2 years ago
Stephen Zhou 3e7fbac926
fix: corner style after scaling (#1199) 2 years ago
CorrectRoadH eda27a60be
fix: incorrect sharing image gerneration (#1157) (#1205) 2 years ago
Dan Fiumara 107a2dbe90
feat: update en locale (#1195) 2 years ago
boojack 9577f6dbe8
feat: add resource visibility to user setting (#1190) 2 years ago
boojack ae61ade2b1
chore: add my account entry in user dropdown (#1187) 2 years ago
Weblate (bot) c399ff86e0
chore: translations update from Hosted Weblate (#1154)
Translated using Weblate (Portuguese (Brazil))

Currently translated at 25.7% (54 of 210 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 0.0% (0 of 0 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (210 of 210 strings)

Added translation using Weblate (Portuguese (Brazil))





Translate-URL: https://hosted.weblate.org/projects/memos/web/pl/
Translate-URL: https://hosted.weblate.org/projects/memos/web/pt_BR/
Translation: memos/web

Co-authored-by: Felipe Nogueira <contato.fnog@gmail.com>
Co-authored-by: Piotr Wik <p_00@o2.pl>
2 years ago
Zeng1998 7b7061846c
chore: open url in other tabs (#1173)
* chore: open url in other tabs

* update: add `rel="noreferrer"`
2 years ago
Zeng1998 d81cf5cc1b
fix: z-index of image preview (#1171) 2 years ago
Zeng1998 4284fd0469
fix: omission of long filename (#1170) 2 years ago
boojack 039b6b247a
chore: remove username click event (#1167)
chore: remove user name click event
2 years ago
H3arn a09b2c4eea
feat: use accent color when confirming deletion (#1161)
- .final-confirm
2 years ago
Zeng1998 57479b250a
chore: remove validators on the frontend (#1156)
* chore: update minlength of username

* remove the validator on frontend

* update
2 years ago
Weblate (bot) e64245099c
chore: update translations from Hosted Weblate (#1150)
Translated using Weblate (Polish)

Currently translated at 99.0% (208 of 210 strings)


Translate-URL: https://hosted.weblate.org/projects/memos/web/pl/
Translation: memos/web

Co-authored-by: Piotr Wik <p_00@o2.pl>
2 years ago
boojack d6e4b5e889
chore: fix dispatch memo pinned (#1152) 2 years ago
boojack 904a6bd97f
fix: find memo list order (#1149) 2 years ago