Skip to content

Commit

Permalink
fix: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Bansal committed Apr 26, 2024
1 parent c85a05e commit 6cce3ce
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion aform/src/components/form/ADatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<table>
<tr>
<td @click="previousMonth" :tabindex="-1">&lt;</td>
<th colspan="5">{{ monthAndYear }}</th>
<th colspan="5" :tabindex="-1">{{ monthAndYear }}</th>
<td @click="nextMonth" :tabindex="-1">&gt;</td>
</tr>
<tr class="days-header">
Expand Down
1 change: 1 addition & 0 deletions aform/stories/assets/basic_table_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"name": "report_date",
"fieldname": "report_date",
"fieldtype": "component",
"modalComponent": "ADatePicker",
"align": "center",
"edit": true,
"width": "25ch",
Expand Down
1 change: 1 addition & 0 deletions aform/stories/assets/fieldset_table_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"name": "report_date",
"fieldname": "report_date",
"fieldtype": "component",
"modalComponent": "ADatePicker",
"align": "center",
"edit": true,
"width": "25ch",
Expand Down
14 changes: 5 additions & 9 deletions aform/stories/date.story.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<template>
<Story title="date">
<Variant title="Date Input">
<ADate label="Date" v-model="defaultDate" />
</Variant>
<Story>
<Variant title="Date Picker">
<h3>Default Date</h3>
<ADatePicker />

<h3>Custom Date</h3>
<ADatePicker v-model="defaultDate" />
</Variant>
<Variant title="Date Input with Picker">
<ADate label="Date" v-model="defaultDate" />
</Variant>
</Story>
</template>

Expand All @@ -21,9 +22,4 @@ const defaultDate = ref(new Date(twoDaysAgo))

<style>
@import url('@stonecrop/themes/default/default.css');
.adate,
.adatepicker {
margin-right: 5ch;
}
</style>
2 changes: 1 addition & 1 deletion aform/stories/dropdown.story.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<Story title="dropdown">
<Story>
<div class="dropdown-form">
<ADropdown
data-theme="purple"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<Story title="default">
<Story>
<Variant title="Form" :setup-app="formSetup">
<AForm class="aform-main" v-model="form_schema" :data="data" :key="formKey" />

Expand Down
2 changes: 1 addition & 1 deletion aform/stories/login.story.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<Story title="login">
<Story>
<Login />
</Story>
</template>
Expand Down
1 change: 1 addition & 0 deletions aform/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default defineConfig({
environment: 'jsdom',
coverage: {
provider: 'v8',
reportOnFailure: true,
thresholds: {
lines: 70,
branches: 70,
Expand Down
1 change: 1 addition & 0 deletions atable/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default defineConfig({
environment: 'jsdom',
coverage: {
provider: 'v8',
reportOnFailure: true,
thresholds: {
lines: 70,
branches: 70,
Expand Down

0 comments on commit 6cce3ce

Please sign in to comment.