nurl/public/v2/build/bundle.css.map

12 lines
233 KiB
Plaintext
Raw Permalink Normal View History

{
"version": 3,
"file": "bundle.css",
"sources": [
"../../App.svelte"
],
"sourcesContent": [
2020-04-17 16:22:51 +00:00
"<script>\n import axios from 'axios';\n\n let validateRegEx = /([a-z]{1,2}tps?):\\/\\/((?:(?!(?:\\/|#|\\?|&)).)+)(?:(\\/(?:(?:(?:(?!(?:#|\\?|&)).)+\\/))?))?(?:((?:(?!(?:\\.|$|\\?|#)).)+))?(?:(\\.(?:(?!(?:\\?|$|#)).)+))?(?:(\\?(?:(?!(?:$|#)).)+))?(?:(#.+))?/i;\n let urlField = '';\n let link = '';\n let canSubmit;\n\n $: urlField = urlField.trim();\n $: canSubmit = validateRegEx.test(urlField);\n\n\n async function doShortenLink(payload) {\n await axios.post('/api/v1/shorten', payload).then((response) => {\n if (response.status === 200) {\n console.log('>> shortUrl', response.data.shortUrl);\n link = response.data.shortUrl;\n }\n })\n .catch((err) => {\n console.error(err);\n });\n }\n\n async function shortenLink() {\n console.log('Shorten...');\n\n const payload = {\n url: urlField\n };\n\n await doShortenLink(payload);\n\n }\n\n\n</script>\n\n<main>\n <div class=\"mui-container-fluid\">\n <div class=\"mui--text-display3\">nURL</div>\n <div class=\"mui--text-subhead\">nurl.co</div>\n <div class=\"mui-panel\">\n <div class=\"mui-textfield\">\n <input id=\"url-field\" bind:value={urlField} placeholder=\"Paste a link...\" type=\"url\">\n </div>\n <button class=\"mui-btn mui-btn--raised mui-btn--accent btn-shorten\" id=\"btn-shorten\" type=\"button\" disabled={!canSubmit}\n on:click={shortenLink}>SHORTEN\n </button>\n {#if link.length>0}\n <div class=\"mui-row\">\n <div class=\"mui-col-lg-12\" id=\"link\">\n <a class=\"result\" href={link}>{link}</a>\n </div>\n </div>\n {/if}\n </div>\n </div>\n</main>\n\n<style lang=\"scss\" global>@import \"//fonts.googleapis.com/css2?family=Roboto+Condensed&family=Roboto+Slab&display=swap\";\n/**\n * MUI Colors module\n */\n/**\n * MUI Colors module\n */\n/**\n * MUI Globals\n */\n/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */\n/* Document\n ========================================================================== */\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n:global(html) {\n line-height: 1.15;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */ }\n\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers.\n */\n:global(body) {\n margin: 0; }\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n:global(h1) {\n font-size: 2em;\n margin: 0.67em 0; }\n\n/* Grouping content\n ========================================================================== */\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n:global(hr) {\n box-sizing: content-box;\n /* 1 */\n height: 0;\n /* 1 */\n overflow: visible;\n /* 2 */ }\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n:global(pre) {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */ }\n\n/* Text-level semantics\n ========================================================================== */\n/**\n * Remove the gray background on active links in IE 10.\n */\n:global(a) {\n background-color: transparent; }\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n:global(abbr[title]) {\n border-bottom: none;\n /* 1 */\n text-decoration: underline;\n /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n /* 2 */ }\n\n/**\n * Add the correct fon
],
"names": [],
2020-04-17 16:22:51 +00:00
"mappings": "AA4D0B,QAAQ,qFAAqF,CAAC,AAiBhH,IAAI,AAAE,CAAC,AACb,WAAW,CAAE,IAAI,CAEjB,wBAAwB,CAAE,IAAI,AACtB,CAAC,AAOH,IAAI,AAAE,CAAC,AACb,MAAM,CAAE,CAAC,AAAE,CAAC,AAMN,EAAE,AAAE,C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