Skip to content

Commit c5e2534

Browse files
musalenmetulev
andauthored
Re-arrange and update the file list stories. (#1147)
* Re-arrange and update the file list stories. Re-arranged the stories to have the same format as the agenda component. Added the following stories: * Attribute stories for files, item-path, page size and file extensions. * Templating * Events * cleanup Co-authored-by: Nikola Metulev <[email protected]>
1 parent 9e5d570 commit c5e2534

File tree

6 files changed

+384
-239
lines changed

6 files changed

+384
-239
lines changed

stories/components/file/file.a.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,26 @@ export default {
1414
decorators: [withCodeEditor]
1515
};
1616

17-
export const simple = () => html`
18-
<mgt-file file-query="/me/drive/items/01BYE5RZZFWGWWVNHHKVHYXE3OUJHGWCT2"></mgt-file>
19-
`;
17+
export const file = () => html`
18+
<mgt-file file-query="/me/drive/items/01BYE5RZZFWGWWVNHHKVHYXE3OUJHGWCT2"></mgt-file>
19+
`;
2020

2121

2222
export const RTL = () => html`
23-
<mgt-file file-query="/me/drive/items/01BYE5RZZFWGWWVNHHKVHYXE3OUJHGWCT2" dir="rtl"></mgt-file>
24-
`;
23+
<mgt-file file-query="/me/drive/items/01BYE5RZZFWGWWVNHHKVHYXE3OUJHGWCT2" dir="rtl"></mgt-file>
24+
`;
25+
26+
export const localization = () => html`
27+
<mgt-file file-query="/me/drive/items/01BYE5RZZFWGWWVNHHKVHYXE3OUJHGWCT2" view="threelines"></mgt-file>
28+
<script>
29+
import { LocalizationHelper } from '@microsoft/mgt';
30+
LocalizationHelper.strings = {
31+
_components: {
32+
'file': {
33+
modifiedSubtitle: '⚡',
34+
sizeSubtitle: '💾'
35+
}
36+
}
37+
}
38+
</script>
39+
`;

stories/components/fileList.stories.js

Lines changed: 0 additions & 234 deletions
This file was deleted.

0 commit comments

Comments
 (0)