|
130 | 130 | 'accessibility-warnings-a11y-role-supports-aria-props',
|
131 | 131 | 'accessibility-warnings-a11y-structure',
|
132 | 132 | 'accessibility-warnings-a11y-unknown-aria-attribute',
|
133 |
| - 'accessibility-warnings-a11y-unknown-role', |
| 133 | + 'accessibility-warnings-a11y-unknown-role' |
134 | 134 | ];
|
135 | 135 |
|
136 | 136 | /** @type {Map<RegExp, string>}*/
|
|
154 | 154 | [/template-syntax-(const|debug|html)$/i, 'special-tags#$1'],
|
155 | 155 | [
|
156 | 156 | /template-syntax-(tags|attributes-and-props|text-expressions|comments)$/i,
|
157 |
| - 'dot-svelte-files#$1', |
| 157 | + 'dot-svelte-files#$1' |
158 | 158 | ],
|
159 | 159 | // !!!! This one should stay at the bottom of `template-syntax`, or it may end up hijacking logic blocks and special tags
|
160 | 160 | [/template-syntax-(.+)/i, 'special-elements#$1'],
|
|
164 | 164 | [/run-time-(client-side-component-api)-?(.*)/i, '$1#$2'],
|
165 | 165 | [
|
166 | 166 | /run-time-(svelte-easing|server-side-component-api|custom-element-api|svelte-register)$/i,
|
167 |
| - '$1', |
| 167 | + '$1' |
168 | 168 | ],
|
169 | 169 | // Catch all, should be at the end or will include store, motion, transition and other modules starting with svelte
|
170 | 170 | [/run-time-(svelte)(?:-(.+))?/i, '$1#$2'],
|
|
173 | 173 | [/compile-time-?(.*)/i, 'svelte-compiler#$1'],
|
174 | 174 |
|
175 | 175 | // Accessibility warnings
|
176 |
| - [/(accessibility-warnings)-?(.+)/i, '$1#$2'], |
| 176 | + [/(accessibility-warnings)-?(.+)/i, '$1#$2'] |
177 | 177 | ]);
|
178 | 178 |
|
179 | 179 | function get_old_new_ids_map() {
|
|
199 | 199 | }
|
200 | 200 |
|
201 | 201 | function getURlToRedirectTo() {
|
202 |
| - console.log(get_old_new_ids_map()); |
203 | 202 | const hash = $page.url.hash.replace(/^#/i, '');
|
204 | 203 |
|
205 | 204 | if (!hash) return '/docs/introduction';
|
|
212 | 211 | return `/docs/${old_new_map.get(hash)}`;
|
213 | 212 | }
|
214 | 213 |
|
215 |
| - onMount(() => goto(getURlToRedirectTo(), { replaceState: true })); |
| 214 | + onMount(() => { |
| 215 | + console.log(get_old_new_ids_map()); |
| 216 | + goto(getURlToRedirectTo(), { replaceState: true }); |
| 217 | + }); |
216 | 218 | </script>
|
0 commit comments