Skip to content

Commit

Permalink
bump line width
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Feb 17, 2024
1 parent f5db13f commit 1028562
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 37 deletions.
7 changes: 1 addition & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"printWidth": 200,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
20 changes: 4 additions & 16 deletions src/lib/DataConverter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,34 +76,22 @@
<div id="export-form">
<h1>BMLT Data Converter</h1>
<div id="inner-box">
<input
type="text"
bind:value={query}
on:keydown={(event) => event.key === 'Enter' && handleExport()}
placeholder="BMLT URL query..."
/>
<button on:click={handleExport} disabled={$processing}
>{$processing ? $loadingText : 'Generate Export Data'}</button
>
<input type="text" bind:value={query} on:keydown={(event) => event.key === 'Enter' && handleExport()} placeholder="BMLT URL query..." />
<button on:click={handleExport} disabled={$processing}>{$processing ? $loadingText : 'Generate Export Data'}</button>
{#if $errorMessage}
<p class="error" id="errorMessages">{$errorMessage}</p>
{/if}

{#if csvDownloadUrl}
<a href={csvDownloadUrl} class="download-links" download="BMLT_data.csv">Download CSV</a><br
/>
<a href={csvDownloadUrl} class="download-links" download="BMLT_data.csv">Download CSV</a><br />
{/if}
{#if kmlDownloadUrl}
<a href={kmlDownloadUrl} class="download-links" download="BMLT_data.kml">Download KML</a>
{/if}
<div id="description">Converts BMLT data from JSON to CSV or KML</div>
</div>
<div id="footer">
<a
href="https://github.com/bmlt-enabled/bmlt-data-converter/issues"
class="footer-link"
target="_blank">Issues?</a
>
<a href="https://github.com/bmlt-enabled/bmlt-data-converter/issues" class="footer-link" target="_blank">Issues?</a>
</div>
</div>
</section>
Expand Down
11 changes: 1 addition & 10 deletions src/lib/DataUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,7 @@ function prepareSimpleLine(meeting: Meeting, withDate = true): string {
};

const getDateString = () => {
const weekday_strings = [
'All',
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday'
];
const weekday_strings = ['All', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
const weekday = parseInt(meeting.weekday_tinyint?.trim() ?? '0');
const weekdayString = weekday_strings[weekday];

Expand Down
5 changes: 1 addition & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>BMLT Data Converter</title>
<script
src="https://use.fontawesome.com/releases/v6.5.1/js/all.js"
data-auto-a11y="true"
></script>
<script src="https://use.fontawesome.com/releases/v6.5.1/js/all.js" data-auto-a11y="true"></script>
</svelte:head>

<DataConverter />

0 comments on commit 1028562

Please sign in to comment.