Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nextcloud-libraries/nextcloud-dialogs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 918d1152ce2e6fa730a904d2916d60c1d39bfe85
Choose a base ref
...
head repository: nextcloud-libraries/nextcloud-dialogs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9e4acefa165177c40204aff768e24bcc4b4a6aec
Choose a head ref
Loading
Showing with 6,565 additions and 748 deletions.
  1. +47 −0 CHANGELOG.md
  2. +13 −0 README.md
  3. +15 −0 l10n/ar.pot
  4. +15 −0 l10n/eo.pot
  5. +15 −0 l10n/fi_FI.pot
  6. +15 −0 l10n/hu_HU.pot
  7. +1 −1 l10n/messages.pot
  8. +15 −0 l10n/nl.pot
  9. +15 −0 l10n/sl.pot
  10. +15 −0 l10n/sv.pot
  11. +15 −0 l10n/tr.pot
  12. +15 −0 l10n/zh_CN.pot
  13. +15 −0 l10n/zh_HK.pot
  14. +1 −0 lib/toast.ts
  15. +1 −1 lib/toastify.d.ts
  16. +6,330 −739 package-lock.json
  17. +5 −5 package.json
  18. +3 −0 styles/close-dark.svg
  19. +14 −2 styles/toast.scss
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,53 @@

All notable changes to this project will be documented in this file.

## [v3.1.2](https://github.com/nextcloud/nextcloud-dialogs/tree/v3.1.2) - 2021-04-12

[Full Changelog](https://github.com/nextcloud/nextcloud-dialogs/compare/v3.1.2...v3.1.1)

### Changed

- Bump @babel/cli from 7.12.1 to 7.13.14 - [\#241](https://github.com/nextcloud/nextcloud-dialogs/pull/241) [\#242](https://github.com/nextcloud/nextcloud-dialogs/pull/242) [\#254](https://github.com/nextcloud/nextcloud-dialogs/pull/254) [\#284](https://github.com/nextcloud/nextcloud-dialogs/pull/284) [\#325](https://github.com/nextcloud/nextcloud-dialogs/pull/325) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump @babel/core from 7.12.3 to 7.13.14 - [\#237](https://github.com/nextcloud/nextcloud-dialogs/pull/237) [\#244](https://github.com/nextcloud/nextcloud-dialogs/pull/244) [\#252](https://github.com/nextcloud/nextcloud-dialogs/pull/252) [\#285](https://github.com/nextcloud/nextcloud-dialogs/pull/285) [\#326](https://github.com/nextcloud/nextcloud-dialogs/pull/326) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump babel-loader-exclude-node-modules-except from 1.0.3 to 1.1.2 - [\#288](https://github.com/nextcloud/nextcloud-dialogs/pull/288) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump @babel/preset-env from 7.12.1 to 7.13.12 - [\#240](https://github.com/nextcloud/nextcloud-dialogs/pull/240) [\#253](https://github.com/nextcloud/nextcloud-dialogs/pull/253) [\#256](https://github.com/nextcloud/nextcloud-dialogs/pull/256) [\#279](https://github.com/nextcloud/nextcloud-dialogs/pull/280) [\#308](https://github.com/nextcloud/nextcloud-dialogs/pull/308) [\#324](https://github.com/nextcloud/nextcloud-dialogs/pull/324) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump @babel/preset-typescript from 7.12.1 to 7.12.13 - [\#238](https://github.com/nextcloud/nextcloud-dialogs/pull/238) [\#282](https://github.com/nextcloud/nextcloud-dialogs/pull/282) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump core-js from 3.7.0 to 3.9.1 - [\#243](https://github.com/nextcloud/nextcloud-dialogs/pull/243) [\#251](https://github.com/nextcloud/nextcloud-dialogs/pull/251) [\#262](https://github.com/nextcloud/nextcloud-dialogs/pull/262) [\#309](https://github.com/nextcloud/nextcloud-dialogs/pull/309) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump highlight.js from 10.2.0 to 10.4.1 - [\#245](https://github.com/nextcloud/nextcloud-dialogs/pull/245) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump rollup from 2.33.1 to 2.38.5 - [\#239](https://github.com/nextcloud/nextcloud-dialogs/pull/239) [\#247](https://github.com/nextcloud/nextcloud-dialogs/pull/247) [\#250](https://github.com/nextcloud/nextcloud-dialogs/pull/250) [\#257](https://github.com/nextcloud/nextcloud-dialogs/pull/257) [\#266](https://github.com/nextcloud/nextcloud-dialogs/pull/266) [\#283](https://github.com/nextcloud/nextcloud-dialogs/pull/283) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump @rollup/plugin-babel from 5.2.1 to 5.3.0 - [\#249](https://github.com/nextcloud/nextcloud-dialogs/pull/249) [\#298](https://github.com/nextcloud/nextcloud-dialogs/pull/298) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump @rollup/plugin-commonjs from 16.0.0 to 18.0.0 - [\#248](https://github.com/nextcloud/nextcloud-dialogs/pull/248) [\#323](https://github.com/nextcloud/nextcloud-dialogs/pull/323) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump @rollup/plugin-node-resolve from 10.0.0 to 11.2.1 - [\#246](https://github.com/nextcloud/nextcloud-dialogs/pull/246) [\#258](https://github.com/nextcloud/nextcloud-dialogs/pull/258) [\#319](https://github.com/nextcloud/nextcloud-dialogs/pull/319) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump rollup-plugin-typescript2 from 0.29.0 to 0.30.0 - [\#322](https://github.com/nextcloud/nextcloud-dialogs/pull/322) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump ToastifyJS from 1.9.1 to 1.10.0 - [\#328](https://github.com/nextcloud/nextcloud-dialogs/pull/328) ([LukasReschke](https://github.com/LukasReschke))
- Bump tslib from 2.0.3 to 2.1.0 - [\#265](https://github.com/nextcloud/nextcloud-dialogs/pull/265) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Bump typescript from 4.0.5 to 4.0.7 - [\#312](https://github.com/nextcloud/nextcloud-dialogs/pull/312) ([dependabot[bot]](49699333+dependabot[bot]@users.noreply.github.com))
- Translation updates - [\#259](https://github.com/nextcloud/nextcloud-dialogs/pull/259) [\#263](https://github.com/nextcloud/nextcloud-dialogs/pull/263) [\#273](https://github.com/nextcloud/nextcloud-dialogs/pull/273) [\#274](https://github.com/nextcloud/nextcloud-dialogs/pull/274) [\#311](https://github.com/nextcloud/nextcloud-dialogs/pull/311)

## [v3.1.1](https://github.com/nextcloud/nextcloud-dialogs/tree/v3.1.1) - 2020-11-13

[Full Changelog](https://github.com/nextcloud/nextcloud-dialogs/compare/v3.1.0...v3.1.1)

### Fixed

- Increased z-index for toast notifications so that they can appear on top of modals as well [\#236](https://github.com/nextcloud/nextcloud-dialogs/pull/236) ([PVince81](https://github.com/PVince81))

## [v3.1.0](https://github.com/nextcloud/nextcloud-dialogs/tree/v3.1.0) - 2020-10-20

[Full Changelog](https://github.com/nextcloud/nextcloud-dialogs/compare/v3.0.0...v3.1.0)

### Added

- Close button style for dark mode [\#1526](https://github.com/nextcloud/nextcloud-dialogs/pull/222) ([PVince81](https://github.com/PVince81))

## 3.0.0 - 2020-10-08
### Breaking
- Timeouts are now in milliseconds
### Added
- Now exports TOAST_UNDO_TIMEOUT, TOAST_DEFAULT_TIMEOUT and TOAST_PERMANENT_TIMEOUT
### Fixed
- Fix timeout of showUndo

## 2.0.1 - 2020-08-27
### Fixed
- Fix timeout of showUndo to 10 seconds
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -36,3 +36,16 @@ showError('This is an error shown without a timeout', { timeout: -1 })
```

A full list of available options can be found in the [documentation](https://nextcloud.github.io/nextcloud-dialogs/).

## Releasing a new version

- Checkout latest master (pull);
- Edit CHANGELOG.md and add new entries there for the new version, then create a commit;
- Run `npm version patch` (`npm version minor` if minor). This will return a new version name, make sure it matches what was added in the CHANGELOG.md;
- Push the tag and the master branch `git push origin master [printed-version-name]`;
- Make the tag a release on github and add the changelog (https://github.com/nextcloud/nextcloud-dialogs/releases);
- Click edit on a previous release and copy the body of the changelog;
- Go back, click on your release and paste the copied text;
- Edit all the version numbers;
- Click on preview and click on view full changelog, this will show you all the prs that have been; added since the previous version;
- Copy them in the changelog with the same format as previous ones;
15 changes: 15 additions & 0 deletions l10n/ar.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# S1 SYSTEMS | BP <info@s1.sa>, 2020
#
msgid ""
msgstr ""
"Last-Translator: S1 SYSTEMS | BP <info@s1.sa>, 2020\n"
"Language-Team: Arabic (https://www.transifex.com/nextcloud/teams/64236/ar/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "تراجع"
15 changes: 15 additions & 0 deletions l10n/eo.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Va Milushnikov <va.milushnikov@gmail.com>, 2020
#
msgid ""
msgstr ""
"Last-Translator: Va Milushnikov <va.milushnikov@gmail.com>, 2020\n"
"Language-Team: Esperanto (https://www.transifex.com/nextcloud/teams/64236/eo/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: eo\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "Malfari"
15 changes: 15 additions & 0 deletions l10n/fi_FI.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# teemue, 2020
#
msgid ""
msgstr ""
"Last-Translator: teemue, 2020\n"
"Language-Team: Finnish (Finland) (https://www.transifex.com/nextcloud/teams/64236/fi_FI/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: fi_FI\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "Kumoa"
15 changes: 15 additions & 0 deletions l10n/hu_HU.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Balázs Meskó <meskobalazs@mailbox.org>, 2021
#
msgid ""
msgstr ""
"Last-Translator: Balázs Meskó <meskobalazs@mailbox.org>, 2021\n"
"Language-Team: Hungarian (Hungary) (https://www.transifex.com/nextcloud/teams/64236/hu_HU/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: hu_HU\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "Visszavonás"
2 changes: 1 addition & 1 deletion l10n/messages.pot
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@ msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"

#: lib/toast.ts:191
#: lib/toast.ts:192
msgid "Undo"
msgstr ""
15 changes: 15 additions & 0 deletions l10n/nl.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Robin Slot, 2020
#
msgid ""
msgstr ""
"Last-Translator: Robin Slot, 2020\n"
"Language-Team: Dutch (https://www.transifex.com/nextcloud/teams/64236/nl/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "Ongedaan maken"
15 changes: 15 additions & 0 deletions l10n/sl.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Matej Urbančič <>, 2020
#
msgid ""
msgstr ""
"Last-Translator: Matej Urbančič <>, 2020\n"
"Language-Team: Slovenian (https://www.transifex.com/nextcloud/teams/64236/sl/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: sl\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "Razveljavi"
15 changes: 15 additions & 0 deletions l10n/sv.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Victor Nyberg <v70123@gmail.com>, 2021
#
msgid ""
msgstr ""
"Last-Translator: Victor Nyberg <v70123@gmail.com>, 2021\n"
"Language-Team: Swedish (https://www.transifex.com/nextcloud/teams/64236/sv/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: sv\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "Ångra"
15 changes: 15 additions & 0 deletions l10n/tr.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Kaya Zeren <kayazeren@gmail.com>, 2020
#
msgid ""
msgstr ""
"Last-Translator: Kaya Zeren <kayazeren@gmail.com>, 2020\n"
"Language-Team: Turkish (https://www.transifex.com/nextcloud/teams/64236/tr/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: tr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "Geri al"
15 changes: 15 additions & 0 deletions l10n/zh_CN.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Toms Project <tom@projectoms.com>, 2020
#
msgid ""
msgstr ""
"Last-Translator: Toms Project <tom@projectoms.com>, 2020\n"
"Language-Team: Chinese (China) (https://www.transifex.com/nextcloud/teams/64236/zh_CN/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "撤消"
15 changes: 15 additions & 0 deletions l10n/zh_HK.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Translators:
# Cha Wong <cafetango@gmail.com>, 2021
#
msgid ""
msgstr ""
"Last-Translator: Cha Wong <cafetango@gmail.com>, 2021\n"
"Language-Team: Chinese (Hong Kong) (https://www.transifex.com/nextcloud/teams/64236/zh_HK/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: zh_HK\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#: lib/toast.ts:191
msgid "Undo"
msgstr "還原"
1 change: 1 addition & 0 deletions lib/toast.ts
Original file line number Diff line number Diff line change
@@ -117,6 +117,7 @@ export function showMessage(data: string|Node, options?: ToastOptions): Toast {
position: 'right',
backgroundColor: '',
className: 'dialogs ' + classes,
escapeMarkup: !options.isHTML,
})
toast.showToast()
return toast
2 changes: 1 addition & 1 deletion lib/toastify.d.ts
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ declare module 'toastify-js' {
stopOnFocus?: Boolean,
callback?: Function,
onClick?: Function,

escapeMarkup?: boolean,
}

export default function Toastify(a: ToastifyOptions): Toast;
Loading