Skip to content

Commit 8a6bf4b

Browse files
committed
update some lint
1 parent 3851e57 commit 8a6bf4b

20 files changed

Lines changed: 917 additions & 917 deletions

src/stories/Buttons.stories.js

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,129 @@
1-
import * as UI from "../../src/index";
1+
import * as UI from '../../src/index'
22

3-
import { action } from "@storybook/addon-actions";
3+
import { action } from '@storybook/addon-actions'
44

55
export default {
6-
title: "Buttons",
7-
};
6+
title: 'Buttons',
7+
}
88

99
export const Primary = {
1010
render: () =>
11-
UI.widgets.button(document, undefined, "Primary", action("clicked")),
12-
name: "Primary",
13-
};
11+
UI.widgets.button(document, undefined, 'Primary', action('clicked')),
12+
name: 'Primary',
13+
}
1414

1515
export const Secondary = {
1616
render: () =>
17-
UI.widgets.button(document, undefined, "Secondary", action("clicked"), {
18-
buttonColor: "Secondary",
17+
UI.widgets.button(document, undefined, 'Secondary', action('clicked'), {
18+
buttonColor: 'Secondary',
1919
}),
2020

21-
name: "Secondary",
22-
};
21+
name: 'Secondary',
22+
}
2323

2424
export const PrimaryNeedsBorder = {
2525
render: () =>
26-
UI.widgets.button(document, undefined, "Secondary", action("clicked"), {
26+
UI.widgets.button(document, undefined, 'Secondary', action('clicked'), {
2727
needsBorder: true,
2828
}),
2929

30-
name: "Primary (needs border)",
31-
};
30+
name: 'Primary (needs border)',
31+
}
3232

3333
export const SecondaryNeedsBorder = {
3434
render: () =>
35-
UI.widgets.button(document, undefined, "Secondary", action("clicked"), {
36-
buttonColor: "Secondary",
35+
UI.widgets.button(document, undefined, 'Secondary', action('clicked'), {
36+
buttonColor: 'Secondary',
3737
needsBorder: true,
3838
}),
3939

40-
name: "Secondary (needs border)",
41-
};
40+
name: 'Secondary (needs border)',
41+
}
4242

4343
export const ContinueButton = {
44-
render: () => UI.widgets.continueButton(document, action("clicked")),
45-
name: "Continue button",
46-
};
44+
render: () => UI.widgets.continueButton(document, action('clicked')),
45+
name: 'Continue button',
46+
}
4747

4848
export const CancelButton = {
49-
render: () => UI.widgets.cancelButton(document, action("clicked")),
50-
name: "Cancel button",
51-
};
49+
render: () => UI.widgets.cancelButton(document, action('clicked')),
50+
name: 'Cancel button',
51+
}
5252

5353
export const DeleteButton = {
5454
render: () => {
55-
const div = document.createElement("div");
55+
const div = document.createElement('div')
5656
const result = UI.widgets.deleteButtonWithCheck(
5757
document,
5858
div,
59-
"something",
60-
action("deleted"),
61-
);
62-
return div;
59+
'something',
60+
action('deleted')
61+
)
62+
return div
6363
},
6464

65-
name: "Delete button",
66-
};
65+
name: 'Delete button',
66+
}
6767

6868
export const ButtonWithIcon = {
6969
render: () =>
7070
UI.widgets.button(
7171
document,
72-
"https://solidproject.org/assets/img/solid-emblem.svg",
73-
"test",
74-
action("clicked!"),
72+
'https://solidproject.org/assets/img/solid-emblem.svg',
73+
'test',
74+
action('clicked!')
7575
),
7676

77-
name: "Button with icon",
78-
};
77+
name: 'Button with icon',
78+
}
7979

8080
export const FileUploadButton = {
81-
render: () => UI.widgets.fileUploadButtonDiv(document, action("uploaded")),
82-
name: "File upload button",
83-
};
81+
render: () => UI.widgets.fileUploadButtonDiv(document, action('uploaded')),
82+
name: 'File upload button',
83+
}
8484

8585
export const LinkButton = {
8686
render: () => {
8787
document.outlineManager = {
88-
GotoSubject: action("go to subject"),
89-
};
88+
GotoSubject: action('go to subject'),
89+
}
9090

9191
return UI.widgets.linkButton(
9292
document,
93-
$rdf.namedNode("http://example.com/"),
94-
);
93+
$rdf.namedNode('http://example.com/')
94+
)
9595
},
9696

97-
name: "Link button",
98-
};
97+
name: 'Link button',
98+
}
9999

100100
export const LinkIcon = {
101101
render: () =>
102-
UI.widgets.linkIcon(document, $rdf.namedNode("https://solidproject.org/")),
103-
name: "Link icon",
104-
};
102+
UI.widgets.linkIcon(document, $rdf.namedNode('https://solidproject.org/')),
103+
name: 'Link icon',
104+
}
105105

106106
export const LinkCustomIcon = {
107107
render: () =>
108108
UI.widgets.linkIcon(
109109
document,
110-
$rdf.namedNode("https://solidproject.org/"),
111-
"https://solidproject.org/favicon.ico",
110+
$rdf.namedNode('https://solidproject.org/'),
111+
'https://solidproject.org/favicon.ico'
112112
),
113113

114-
name: "Link custom icon",
115-
};
114+
name: 'Link custom icon',
115+
}
116116

117117
export const RemoveButton = {
118118
render: () => {
119-
const div = document.createElement("div");
120-
const p = document.createElement("p");
121-
p.appendChild(document.createTextNode("click x to remove me"));
122-
const button = UI.widgets.removeButton(document, p);
123-
div.appendChild(p);
124-
div.appendChild(button);
125-
return div;
119+
const div = document.createElement('div')
120+
const p = document.createElement('p')
121+
p.appendChild(document.createTextNode('click x to remove me'))
122+
const button = UI.widgets.removeButton(document, p)
123+
div.appendChild(p)
124+
div.appendChild(button)
125+
return div
126126
},
127127

128-
name: "Remove button",
129-
};
128+
name: 'Remove button',
129+
}

src/stories/DateTime.stories.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
import * as UI from "../../src/index";
1+
import * as UI from '../../src/index'
22

33
export default {
4-
title: "Date & Time",
5-
};
4+
title: 'Date & Time',
5+
}
66

77
export const FormatDateTime = {
88
render: () =>
99
UI.widgets.formatDateTime(
1010
new Date(),
11-
"{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}",
11+
'{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}'
1212
),
1313

14-
name: "formatDateTime",
15-
};
14+
name: 'formatDateTime',
15+
}
1616

1717
export const FormatDateTimeDate = {
18-
render: () => UI.widgets.formatDateTime(new Date(), "{Date}.{Month}.{Year}"),
19-
name: "formatDateTime date",
20-
};
18+
render: () => UI.widgets.formatDateTime(new Date(), '{Date}.{Month}.{Year}'),
19+
name: 'formatDateTime date',
20+
}
2121

2222
export const FormatDateTimeTime = {
2323
render: () =>
24-
UI.widgets.formatDateTime(new Date(), "{Hours}:{Minutes}:{Seconds}"),
25-
name: "formatDateTime time",
26-
};
24+
UI.widgets.formatDateTime(new Date(), '{Hours}:{Minutes}:{Seconds}'),
25+
name: 'formatDateTime time',
26+
}
2727

2828
export const ShortDateNotTodayWithoutTime = {
29-
render: () => UI.widgets.shortDate("2020-01-01T15:43", true),
30-
name: "shortDate (not today & without time)",
31-
};
29+
render: () => UI.widgets.shortDate('2020-01-01T15:43', true),
30+
name: 'shortDate (not today & without time)',
31+
}
3232

3333
export const ShortDateWithTimeButNotToday = {
34-
render: () => UI.widgets.shortDate("2020-01-01T15:43", false),
35-
name: "shortDate (with time, but not today)",
36-
};
34+
render: () => UI.widgets.shortDate('2020-01-01T15:43', false),
35+
name: 'shortDate (with time, but not today)',
36+
}
3737

3838
export const ShortDateTodayWithoutTime = {
3939
render: () => UI.widgets.shortDate(new Date().toISOString(), true),
40-
name: "shortDate (today & without time)",
41-
};
40+
name: 'shortDate (today & without time)',
41+
}
4242

4343
export const ShortDateTodayWithTime = {
4444
render: () => UI.widgets.shortDate(new Date().toISOString(), false),
45-
name: "shortDate (today & with time)",
46-
};
45+
name: 'shortDate (today & with time)',
46+
}
4747

4848
export const ShortTime = {
4949
render: () => UI.widgets.shortTime(),
50-
name: "shortTime",
51-
};
50+
name: 'shortTime',
51+
}
5252

5353
export const Timestamp = {
5454
render: () => UI.widgets.timestamp(),
55-
name: "timestamp",
56-
};
55+
name: 'timestamp',
56+
}

src/stories/Display.stories.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
import * as UI from "../../src/index";
1+
import * as UI from '../../src/index'
22

33
export default {
4-
title: "Display",
5-
};
4+
title: 'Display',
5+
}
66

77
export const Complain = {
88
render: () => {
9-
const div = document.createElement("div");
9+
const div = document.createElement('div')
1010

1111
UI.widgets.complain(
1212
{
1313
div,
1414
dom: document,
1515
},
16-
"not good!",
17-
);
16+
'not good!'
17+
)
1818

19-
return div;
19+
return div
2020
},
2121

22-
name: "complain",
23-
};
22+
name: 'complain',
23+
}
2424

2525
export const ErrorMessageBlock = {
2626
render: () => {
27-
return UI.widgets.errorMessageBlock(document, "my error message", "#f0f");
27+
return UI.widgets.errorMessageBlock(document, 'my error message', '#f0f')
2828
},
2929

30-
name: "errorMessageBlock",
31-
};
30+
name: 'errorMessageBlock',
31+
}
3232

3333
export const SetName = {
3434
render: () => {
35-
const div = document.createElement("div");
36-
const jane = $rdf.namedNode("https://jane.example/person/card#me");
37-
SolidLogic.store.add(jane, UI.ns.foaf("name"), "Jane Doe");
38-
UI.widgets.setName(div, jane);
39-
return div;
35+
const div = document.createElement('div')
36+
const jane = $rdf.namedNode('https://jane.example/person/card#me')
37+
SolidLogic.store.add(jane, UI.ns.foaf('name'), 'Jane Doe')
38+
UI.widgets.setName(div, jane)
39+
return div
4040
},
4141

42-
name: "setName",
43-
};
42+
name: 'setName',
43+
}

0 commit comments

Comments
 (0)