18 lines
70 KiB
Plaintext
18 lines
70 KiB
Plaintext
|
{
|
||
|
"version": 3,
|
||
|
"file": "bundle.css",
|
||
|
"sources": [
|
||
|
"../../App.svelte",
|
||
|
"../../Detail.svelte",
|
||
|
"../../Lister.svelte",
|
||
|
"../../Menu.svelte"
|
||
|
],
|
||
|
"sourcesContent": [
|
||
|
"<script>\n import Menu from \"./components/Menu.svelte\";\n import Lister from \"./components/Lister.svelte\";\n import Detail from \"./components/Detail.svelte\";\n</script>\n\n<style lang=\"scss\" global>@import url(\"https://fonts.googleapis.com/css?family=Roboto+Condensed\");\n/* Global Styles */\n:global(:root) {\n --primary-color: #607D8B;\n --dark-color: #294c5d;\n --light-color: #CFD8DC;\n --danger-color: #dc3545;\n --success-color: #28a745;\n --highlight-color: #dcc894;\n --highlight-color2: #dca394;\n --navbar-height: 4rem; }\n\n:global(*) {\n box-sizing: border-box;\n margin: 0;\n padding: 0; }\n\n:global(body) {\n font-family: 'Roboto Condensed', sans-serif;\n font-size: 1rem;\n line-height: 1.6;\n background-color: #fff;\n color: #333;\n padding: 0; }\n\n:global(a) {\n color: var(--primary-color);\n text-decoration: none; }\n\n:global(a:hover) {\n color: #666; }\n\n:global(a.active) {\n color: var(--highlight-color); }\n\n:global(ul) {\n list-style: none; }\n\n:global(img) {\n width: 100%; }\n\n:global(.dataRow) {\n cursor: pointer; }\n\n/* Utilities */\n:global(.container) {\n max-width: 1100px;\n margin: auto;\n overflow: hidden;\n padding: 0 2rem; }\n\n/* Text Styles*/\n:global(.x-large) {\n font-size: 4rem;\n line-height: 1.2;\n margin-bottom: 1rem; }\n\n:global(.large) {\n font-size: 3rem;\n line-height: 1.2;\n margin-bottom: 1rem; }\n\n:global(.lead) {\n font-size: 1.5rem;\n margin-bottom: 1rem; }\n\n:global(.text-center) {\n text-align: center; }\n\n:global(.text-primary) {\n color: var(--primary-color); }\n\n:global(.text-dark) {\n color: var(--dark-color); }\n\n:global(.text-success) {\n color: var(--success-color); }\n\n:global(.text-danger) {\n color: var(--danger-color); }\n\n:global(.text-highlight) {\n color: var(--highlight-color); }\n\n:global(.text-highlight2) {\n color: var(--highlight-color2); }\n\n:global(.text-center) {\n text-align: center; }\n\n:global(.text-right) {\n text-align: right; }\n\n:global(.text-left) {\n text-align: left; }\n\n:global(.text-lowercase) {\n text-transform: lowercase; }\n\n:global(.text-uppercase) {\n text-transform: uppercase; }\n\n:global(.text-capitalize) {\n text-transform: capitalize; }\n\n:global(.text-title), :global(h3) {\n font-weight: 400;\n font-size: 20px;\n line-height: 28px; }\n\n:global(.text-subhead), :global(h4) {\n font-weight: 400;\n font-size: 16px;\n line-height: 24px; }\n\n:global(.text-body2), :global(h5) {\n font-weight: 500;\n font-size: 14px;\n line-height: 24px; }\n\n:global(.text-body1) {\n font-weight: 400;\n font-size: 14px;\n line-height: 20px; }\n\n:global(.text-caption) {\n font-weight: 400;\n font-size: 12px;\n line-height: 16px; }\n\n/* Center All */\n:global(.all-center) {\n display: flex;\n flex-direction: column;\n width: 100%;\n margin: auto;\n justify-content: center;\n align-items: center;\n text-align: center; }\n\n/* Cards */\n:global(.card) {\n padding: 1rem;\n border: #ccc 1px dotted;\n margin: 0.7rem 0; }\n\n/* List */\n:global(.list) {\n margin: 0.5rem 0; }\n\n:global(.list) :global(li) {\n padding-bottom: 0.3rem; }\n\n/* Padding */\n:global(.p) {\n padding: 0.5rem; }\n\n:global(.p-1) {\n padding: 1rem; }\n\n:global(.p-2) {\n padding: 2rem; }\n\n:global(.p-3) {\n padding: 3rem; }\n\n:global(.py) {\n padding: 0.5rem 0; }\n\n:global(.py-1) {\n padding: 1rem 0; }\n\n:global(.py-2) {\n padding: 2rem 0; }\n\n:global(.py-3) {\n padding: 3rem 0; }\n\n/* Margin */\n:global(.m) {\n margin: 0.5rem; }\n\n:global(.m-1) {\n margin: 1rem; }\n\n:global(.mb-1) {\n margin-bottom: .2rem !important; }\n\n:global(.ml-1) {\n margin-left: .2rem !important; }\n\n:global(.mr-1) {\n margin-right: .2rem !important; }\n\n:global(.mt-1) {\n margin-top: .2rem !important; }\n\n:global(.mx-1) {\n margin-left: 1rem !important;\n margin-right: 1rem !important; }\n\n:global(.m-2) {\n margin: 2rem; }\n\n:global(.mb-2) {\n margin-bottom: .4rem !important; }\n\n:global(.ml-2) {\n margin-left: .4rem !important; }\n\n:global(.mr-2) {\n margin-
|
||
|
"<script>\n import {JobDetails, actions} from '../state/state';\n\n let jobDetail = {};\n\n let visible = false;\n\n JobDetails.subscribe((v) => {\n visible = !isEmpty(v);\n\n })\n\n function isEmpty(obj) {\n for(const key in obj)\n if(obj.hasOwnProperty(key)) return false;\n\n return true;\n }\n</script>\n\n<style>\n.detail {\n /*flex-grow:1;*/\n width: 100%;\n border-top: 2px solid #e1e1e1;\n\n height: 50vh;\n max-height: 50vh;\n overflow-y: scroll;\n\n}\n.detailHead {\n box-sizing: border-box;\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n\n.row {\n margin: 1% 0;\n overflow: auto;\n display:flex;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9jb21wb25lbnRzL0RldGFpbC5zdmVsdGUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBO0lBQ0ksZUFBZTtJQUNmLFdBQVc7SUFDWCw2QkFBNkI7O0lBRTdCLFlBQVk7SUFDWixnQkFBZ0I7SUFDaEIsa0JBQWtCOztBQUV0QjtBQUNBO0lBRUksc0JBQXNCO0lBQ3RCLGtCQUFrQjtJQUNsQixpQkFBaUI7SUFDakIsa0JBQWtCO0lBQ2xCLG1CQUFtQjtBQUN2Qjs7QUFFQTtJQUNJLFlBQVk7SUFDWixjQUFjO0lBQ2QsWUFBWTtBQUNoQiIsImZpbGUiOiJzcmMvY29tcG9uZW50cy9EZXRhaWwuc3ZlbHRlIiwic291cmNlc0NvbnRlbnQiOlsiXG4uZGV0YWlsIHtcbiAgICAvKmZsZXgtZ3JvdzoxOyovXG4gICAgd2lkdGg6IDEwMCU7XG4gICAgYm9yZGVyLXRvcDogMnB4IHNvbGlkICNlMWUxZTE7XG5cbiAgICBoZWlnaHQ6IDUwdmg7XG4gICAgbWF4LWhlaWdodDogNTB2aDtcbiAgICBvdmVyZmxvdy15OiBzY3JvbGw7XG5cbn1cbi5kZXRhaWxIZWFkIHtcbiAgICAtd2Via2l0LWJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgICBtYXJnaW4tcmlnaHQ6IGF1dG87XG4gICAgbWFyZ2luLWxlZnQ6IGF1dG87XG4gICAgcGFkZGluZy1sZWZ0OiAxNXB4O1xuICAgIHBhZGRpbmctcmlnaHQ6IDE1cHg7XG59XG5cbi5yb3cge1xuICAgIG1hcmdpbjogMSUgMDtcbiAgICBvdmVyZmxvdzogYXV0bztcbiAgICBkaXNwbGF5OmZsZXg7XG59XG4iXX0= */</style>\n\n\n{#if visible}\n<div class=\"detail\">\n <div class=\"detailHead bg-light\">\n <div class=\"row\">\n <div class=\"col-12 text-primary lead\">\n {$JobDetails.title}\n </div>\n\n </div>\n <div class=\"row\">\n <div class=\"col-6\">\n Company: <span class=\"text-primary\">{$JobDetails.company}</span>\n </div>\n <div class=\"col-6\">\n Location: <span class=\"text-primary\">{$JobDetails.location}</span>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-1-3rd\">\n Salary: <span class=\"text-primary\">{$JobDetails.salary}</span>\n </div>\n <div class=\"col-1-3rd\">\n Scraped: <span class=\"text-primary\">{$JobDetails.date}</span>\n </div>\n <div class=\"col-1-3rd\">\n Site: <a href={$JobDetails.url} class=\"text-capitalize\" target=\"_blank\">{$JobDetails.site}</a>\n </div>\n\n </div>\n\n\n </div>\n <blockquote>\n {$JobDetails.summary}\n </blockquote>\n</div>\n\n{/if}\n",
|
||
|
"<script>\n\n import {JobList, actions} from '../state/state';\n\n const handleClick = id => {\n actions.loadJobDetail(id);\n };\n</script>\n\n<style>\n.lister {\n height: 50vh;\n max-height: 50vh;\n overflow-y: scroll;\n}\n\n.hide {\n display: none;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9jb21wb25lbnRzL0xpc3Rlci5zdmVsdGUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBO0lBQ0ksWUFBWTtJQUNaLGdCQUFnQjtJQUNoQixrQkFBa0I7QUFDdEI7O0FBRUE7SUFDSSxhQUFhO0FBQ2pCIiwiZmlsZSI6InNyYy9jb21wb25lbnRzL0xpc3Rlci5zdmVsdGUiLCJzb3VyY2VzQ29udGVudCI6WyJcbi5saXN0ZXIge1xuICAgIGhlaWdodDogNTB2aDtcbiAgICBtYXgtaGVpZ2h0OiA1MHZoO1xuICAgIG92ZXJmbG93LXk6IHNjcm9sbDtcbn1cblxuLmhpZGUge1xuICAgIGRpc3BsYXk6IG5vbmU7XG59XG4iXX0= */</style>\n\n\n<div class=\"lister\">\n <table class=\"\">\n <thead>\n <tr>\n <th class=\"col-5\">\n Title\n </th>\n <th class=\"col-2\">\n Site\n </th>\n <th class=\"col-3\">\n Company\n </th>\n <th class=\"col-2\">\n Date\n </th>\n </tr>\n </thead>\n <tbody>\n {#each $JobList as item, _id}\n <tr on:click={handleClick(item._id)} class=\"dataRow\">\n <td>{item.title}</td>\n <td>{item.site}</td>\n <td>{item.company}</td>\n <td>{item.date}</td>\n </tr>\n {/each}\n </tbody>\n </table>\n</div>\n\n\n",
|
||
|
"<script>\n\n function handleClick(){\n\n }\n\n</script>\n\n<style>\nmenu {\n\n border-right: 2px solid #e1e1e1;\n background-color: #f4f4f4;\n height:100vh;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9jb21wb25lbnRzL01lbnUuc3ZlbHRlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQTs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