From 8a8dcd1df4e51fc20fa407956c7b9eb3589a7fe0 Mon Sep 17 00:00:00 2001 From: LoganTann Date: Wed, 6 Oct 2021 08:03:59 +0200 Subject: [PATCH 1/3] docs(navbar): change version from 1.0.0 to 1.1.0 in the docs version dropdown changed all occurences of 1.1.0 to 1.0.0, then added a 1.0.0 link option than points to the official docs, and edited the 0.100.0 docs links to use https instead of http fix #179 --- pug/_navbar.pug | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pug/_navbar.pug b/pug/_navbar.pug index 6e4259cf18..8cad39790f 100644 --- a/pug/_navbar.pug +++ b/pug/_navbar.pug @@ -14,13 +14,15 @@ header a#logo-container.brand-logo(href='/materialize/') object#front-page-logo(type='image/svg+xml', data='res/materialize.svg') Your browser does not support SVG li.version - a.dropdown-trigger(href='#' data-target='version-dropdown') 1.0.0 + a.dropdown-trigger(href='#' data-target='version-dropdown') 1.1.0 ul#version-dropdown.dropdown-content li - a 1.0.0 + a 1.1.0 li - a(href='http://archives.materializecss.com/0.100.2/' target='_blank' rel='noopener noreferrer') 0.100.2 + a(href='https://materializecss.com/' target='_blank' rel='noopener noreferrer') 1.0.0 + li + a(href='https://archives.materializecss.com/0.100.2/' target='_blank' rel='noopener noreferrer') 0.100.2 li(class="search") div.search-wrapper input(id="search", placeholder="Search" autocomplete="off") From 5d93e4dbdc6e28ecba54e763ac52e5b85cd787c4 Mon Sep 17 00:00:00 2001 From: LoganTann Date: Wed, 6 Oct 2021 08:09:38 +0200 Subject: [PATCH 2/3] docs(index_content): remove the 0.100.2 upgrade guide button as well as the v1-upgrade-guide.md file Since it's no longer needed. 0.100.2 is very very old. --- pug/index/index_content.html | 1 - v1-upgrade-guide.md | 118 ----------------------------------- 2 files changed, 119 deletions(-) delete mode 100644 v1-upgrade-guide.md diff --git a/pug/index/index_content.html b/pug/index/index_content.html index 5e6f7bbef6..159278e30b 100644 --- a/pug/index/index_content.html +++ b/pug/index/index_content.html @@ -10,7 +10,6 @@

A modern responsive front-end framework based on Material Desi
diff --git a/v1-upgrade-guide.md b/v1-upgrade-guide.md deleted file mode 100644 index 53de7e6deb..0000000000 --- a/v1-upgrade-guide.md +++ /dev/null @@ -1,118 +0,0 @@ -# Upgrade to v1.0.0 from v0.100.2 - -## Auto Init -- Components are no longer initialized automatically on document load by Materialize -- Added function `M.AutoInit()` that initializes all components - -## Character Counter -- Automatic initialization removed, initialize it manually as shown in documentation - - -## Checkboxes and Radio Buttons -- Changed Checkboxes and Radio buttons to have similar label wrapping as switches -- Instead of using `.trigger('autoresize')` use `M.textareaAutoResize` to resize textareas - - -## Chips -- Renamed plugin from `material_chip` to `chips` -- Removed `autocompleteData` `autocompleteLimit` options, instead pass in autocomplete related options in `autocompleteOptions` -- Removed event triggers, use onChipAdd, onChipSelect, onChipDelete callback options instead - - -## Collapsible -- Removed automatic initialization, initialize it manually as shown in documentation -- Removed html attribute options, use the options parameter during initialization instead -- Removed onOpen and onClose callbacks and added onOpenStart, onOpenEnd, onCloseStart, onCloseEnd callbacks - - -## Collections -- Removed dismissible collections - - -## Datepicker -- Complete rewrite of Datepicker, please see new documentation -- Rename plugin call from `.pickadate()` to `.datepicker()` -- Datepicker options `clear`, `close` moved to `i18n.clear`, and `i18n.done` respectively. - - -## Dropdown -- Removed gutter option -- Removed stopPropagation option -- Call plugin on `.dropdown-trigger` instead of `.dropdown-button` -- Change attribute `data-activates` to `data-target` -- Rename classes `.dropdown-button` to `.dropdown-trigger` -- Rename option `belowOrigin` to `coverTrigger` -- Removed automatic initialization, initialize it manually as shown in documentation - - -## Floating Action Buttons -- Automatic initialization removed -- Converted to plugin - - -## Materialbox -- Removed automatic initialization, initialize it manually as shown in documentation - - -## Modal -- Change attribute `data-activates` to `data-target` -- Removed ready and complete callbacks, use onOpenEnd and onCloseEnd callbacks instead - - -## Scrollfire -- Plugin removed, this capability is better handled by other existing open source plugins - - -## Select -- Rename plugin call `.material_select()` to `.formSelect()` - - -## Sidenav -- Removed menuWidth option, use CSS to set sidenav width instead -- Call plugin on `.sidenav` instead of `.button-collapse` -- Change attribute `data-activates` to `data-target` -- Add `.sidenav-trigger` class to sidenav open trigger -- Rename classes `.side-nav` to `.sidenav` -- Remove deprecated class `.userView`, use `.user-view` instead -- Rename plugin call `.sideNav()` to `.sidenav()` -- Sidenav option `closeOnClick` no longer exists - - Instead apply the class `.sidenav-close` to any item in the Sidenav that you wish to trigger a close. -- Removed onOpen and onClose callbacks, use onOpenEnd and onCloseEnd callbacks instead -- Rename `fixed` class to `sidenav-fixed` -- Rename methods `show` and `hide` to `open` and `close` respectively - - -## Tabs -- Removed automatic initialization, initialize it manually as shown in documentation -- Rename plugin method `select_tab` to `select` - - -## Tap Target -- Change attribute `data-activates` to `data-target` - - -## Text Inputs -- Added new Helper Text element that should be placed after the `label` -- Moved validation messages `data-error` and `data-success` to Helper Text - - -## Timepicker -- Change `default` option to `defaultTime` -- Timepicker options `clear`, `close` moved to `i18n.clear`, and `i18n.done` respectively. -- Change `fromnow` option to `fromNow` -- Removed `ampmclickable` option - - -## Toasts -- Arguments list of the M.toast function has been changed into an options Object similar to all the other plugins -- Rename the `className` option to `classes` - - -## Tooltip -- Removed delay option and added enterDelay and exitDelay -- Removed `tooltip` option, use option `html` to set tooltip html instead -- Some html attribute options have been removed, only data-tooltip and data-position remain, instead use the options during initialization to set options - - -## Transitions -- JavaScript transitions removed From 6a3e2138c9a3f2b09a1098e735c3f155239e4866 Mon Sep 17 00:00:00 2001 From: LoganTann Date: Mon, 11 Oct 2021 22:41:22 +0200 Subject: [PATCH 3/3] refactor(v1-upgrade-guide): restore the deletion of the file v1-upgrade-guide Since there are still many projects which use the original version and some 0.x release, it has been decided to not delete the v1-upgrade-guide.md file --- v1-upgrade-guide.md | 118 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 v1-upgrade-guide.md diff --git a/v1-upgrade-guide.md b/v1-upgrade-guide.md new file mode 100644 index 0000000000..53de7e6deb --- /dev/null +++ b/v1-upgrade-guide.md @@ -0,0 +1,118 @@ +# Upgrade to v1.0.0 from v0.100.2 + +## Auto Init +- Components are no longer initialized automatically on document load by Materialize +- Added function `M.AutoInit()` that initializes all components + +## Character Counter +- Automatic initialization removed, initialize it manually as shown in documentation + + +## Checkboxes and Radio Buttons +- Changed Checkboxes and Radio buttons to have similar label wrapping as switches +- Instead of using `.trigger('autoresize')` use `M.textareaAutoResize` to resize textareas + + +## Chips +- Renamed plugin from `material_chip` to `chips` +- Removed `autocompleteData` `autocompleteLimit` options, instead pass in autocomplete related options in `autocompleteOptions` +- Removed event triggers, use onChipAdd, onChipSelect, onChipDelete callback options instead + + +## Collapsible +- Removed automatic initialization, initialize it manually as shown in documentation +- Removed html attribute options, use the options parameter during initialization instead +- Removed onOpen and onClose callbacks and added onOpenStart, onOpenEnd, onCloseStart, onCloseEnd callbacks + + +## Collections +- Removed dismissible collections + + +## Datepicker +- Complete rewrite of Datepicker, please see new documentation +- Rename plugin call from `.pickadate()` to `.datepicker()` +- Datepicker options `clear`, `close` moved to `i18n.clear`, and `i18n.done` respectively. + + +## Dropdown +- Removed gutter option +- Removed stopPropagation option +- Call plugin on `.dropdown-trigger` instead of `.dropdown-button` +- Change attribute `data-activates` to `data-target` +- Rename classes `.dropdown-button` to `.dropdown-trigger` +- Rename option `belowOrigin` to `coverTrigger` +- Removed automatic initialization, initialize it manually as shown in documentation + + +## Floating Action Buttons +- Automatic initialization removed +- Converted to plugin + + +## Materialbox +- Removed automatic initialization, initialize it manually as shown in documentation + + +## Modal +- Change attribute `data-activates` to `data-target` +- Removed ready and complete callbacks, use onOpenEnd and onCloseEnd callbacks instead + + +## Scrollfire +- Plugin removed, this capability is better handled by other existing open source plugins + + +## Select +- Rename plugin call `.material_select()` to `.formSelect()` + + +## Sidenav +- Removed menuWidth option, use CSS to set sidenav width instead +- Call plugin on `.sidenav` instead of `.button-collapse` +- Change attribute `data-activates` to `data-target` +- Add `.sidenav-trigger` class to sidenav open trigger +- Rename classes `.side-nav` to `.sidenav` +- Remove deprecated class `.userView`, use `.user-view` instead +- Rename plugin call `.sideNav()` to `.sidenav()` +- Sidenav option `closeOnClick` no longer exists + - Instead apply the class `.sidenav-close` to any item in the Sidenav that you wish to trigger a close. +- Removed onOpen and onClose callbacks, use onOpenEnd and onCloseEnd callbacks instead +- Rename `fixed` class to `sidenav-fixed` +- Rename methods `show` and `hide` to `open` and `close` respectively + + +## Tabs +- Removed automatic initialization, initialize it manually as shown in documentation +- Rename plugin method `select_tab` to `select` + + +## Tap Target +- Change attribute `data-activates` to `data-target` + + +## Text Inputs +- Added new Helper Text element that should be placed after the `label` +- Moved validation messages `data-error` and `data-success` to Helper Text + + +## Timepicker +- Change `default` option to `defaultTime` +- Timepicker options `clear`, `close` moved to `i18n.clear`, and `i18n.done` respectively. +- Change `fromnow` option to `fromNow` +- Removed `ampmclickable` option + + +## Toasts +- Arguments list of the M.toast function has been changed into an options Object similar to all the other plugins +- Rename the `className` option to `classes` + + +## Tooltip +- Removed delay option and added enterDelay and exitDelay +- Removed `tooltip` option, use option `html` to set tooltip html instead +- Some html attribute options have been removed, only data-tooltip and data-position remain, instead use the options during initialization to set options + + +## Transitions +- JavaScript transitions removed