From fa9de1d8a8af3c0b428f282e0d0aba25fef417a2 Mon Sep 17 00:00:00 2001 From: mydearxym Date: Mon, 15 Mar 2021 23:54:59 +0800 Subject: [PATCH 1/4] chore(ts-workflow): schema.js -> ts --- src/containers/content/CommunityContent/{schema.js => schema.ts} | 0 src/containers/content/CoolGuideContent/{schema.js => schema.ts} | 0 src/containers/content/DiscoveryContent/{schema.js => schema.ts} | 0 src/containers/content/FriendsContent/{schema.js => schema.ts} | 0 src/containers/content/HaveADrinkContent/{schema.js => schema.ts} | 0 src/containers/content/HelpCenterContent/{schema.js => schema.ts} | 0 src/containers/content/JobContent/{schema.js => schema.ts} | 0 src/containers/content/MeetupsContent/{schema.js => schema.ts} | 0 src/containers/content/MembershipContent/{schema.js => schema.ts} | 0 src/containers/content/PostContent/{schema.js => schema.ts} | 0 src/containers/content/RecipesContent/{schema.js => schema.ts} | 0 src/containers/content/RepoContent/{schema.js => schema.ts} | 0 src/containers/content/SponsorContent/{schema.js => schema.ts} | 0 src/containers/content/SubscribeContent/{schema.js => schema.ts} | 0 src/containers/content/TrendingContent/{schema.js => schema.ts} | 0 src/containers/content/UserContent/{schema.js => schema.ts} | 0 src/containers/content/VideoContent/{schema.js => schema.ts} | 0 src/containers/content/WorksContent/{schema.js => schema.ts} | 0 src/containers/digest/ArticleDigest/{schema.js => schema.ts} | 0 src/containers/digest/CommunityDigest/{schema.js => schema.ts} | 0 src/containers/editor/AccountEditor/{schema.js => schema.ts} | 0 src/containers/editor/ArticleEditor/{schema.js => schema.ts} | 0 src/containers/editor/CommunityEditor/{schema.js => schema.ts} | 0 src/containers/editor/JobEditor/{schema.js => schema.ts} | 0 src/containers/editor/PostEditor/{schema.js => schema.ts} | 0 src/containers/editor/RepoEditor/{schema.js => schema.ts} | 0 src/containers/editor/RichEditor/{schema.js => schema.ts} | 0 src/containers/editor/VideoEditor/{schema.js => schema.ts} | 0 src/containers/editor/WorksEditor/{schema.js => schema.ts} | 0 src/containers/thread/CheatsheetThread/{schema.js => schema.ts} | 0 src/containers/thread/JobsThread/{schema.js => schema.ts} | 0 src/containers/thread/PostsThread/{schema.js => schema.ts} | 0 src/containers/thread/ReposThread/{schema.js => schema.ts} | 0 src/containers/thread/RoadmapThread/{schema.js => schema.ts} | 0 src/containers/thread/UsersThread/{schema.js => schema.ts} | 0 src/containers/thread/VideosThread/{schema.js => schema.ts} | 0 src/containers/thread/WikiThread/{schema.js => schema.ts} | 0 src/containers/tool/AvatarAdder/{schema.js => schema.ts} | 0 src/containers/tool/C11NSettingPanel/{schema.js => schema.ts} | 0 src/containers/tool/Cashier/{schema.js => schema.ts} | 0 src/containers/tool/CommunityJoinBadge/{schema.js => schema.ts} | 0 src/containers/tool/CommunitySetter/{schema.js => schema.ts} | 0 src/containers/tool/Doraemon/{schema.js => schema.ts} | 0 src/containers/tool/FavoritesCats/{schema.js => schema.ts} | 0 src/containers/tool/GirlVerifier/{schema.js => schema.ts} | 0 src/containers/tool/Informer/{schema.js => schema.ts} | 0 src/containers/tool/JoinModal/{schema.js => schema.ts} | 0 src/containers/tool/MailBox/{schema.js => schema.ts} | 0 src/containers/unit/ArticleAuthorCard/{schema.js => schema.ts} | 0 src/containers/unit/ArticleBodyHeader/{schema.js => schema.ts} | 0 src/containers/unit/ArticleFooter/{schema.js => schema.ts} | 0 src/containers/unit/ArticleViewerHeader/{schema.js => schema.ts} | 0 src/containers/unit/Comments/{schema.js => schema.ts} | 0 src/containers/unit/Header/{schema.js => schema.ts} | 0 src/containers/unit/Labeler/{schema.js => schema.ts} | 0 src/containers/unit/ModeLineMenu/{schema.js => schema.ts} | 0 src/containers/unit/Sidebar/{schema.js => schema.ts} | 0 src/containers/unit/TagsBar/{schema.js => schema.ts} | 0 src/containers/user/UserBilling/{schema.js => schema.ts} | 0 src/containers/user/UserFavorited/{schema.js => schema.ts} | 0 src/containers/user/UserLister/{schema.js => schema.ts} | 0 src/containers/user/UserProfile/{schema.js => schema.ts} | 0 src/containers/user/UserPublished/{schema.js => schema.ts} | 0 .../user/UserPublishedComments/{schema.js => schema.ts} | 0 src/containers/user/UserSettings/{schema.js => schema.ts} | 0 src/containers/user/UserStared/{schema.js => schema.ts} | 0 src/containers/viewer/JobViewer/{schema.js => schema.ts} | 0 src/containers/viewer/MailsViewer/{schema.js => schema.ts} | 0 src/containers/viewer/PostViewer/{schema.js => schema.ts} | 0 src/containers/viewer/RepoViewer/{schema.js => schema.ts} | 0 src/containers/viewer/VideoViewer/{schema.js => schema.ts} | 0 src/services/github_api/{schema.js => schema.ts} | 0 72 files changed, 0 insertions(+), 0 deletions(-) rename src/containers/content/CommunityContent/{schema.js => schema.ts} (100%) rename src/containers/content/CoolGuideContent/{schema.js => schema.ts} (100%) rename src/containers/content/DiscoveryContent/{schema.js => schema.ts} (100%) rename src/containers/content/FriendsContent/{schema.js => schema.ts} (100%) rename src/containers/content/HaveADrinkContent/{schema.js => schema.ts} (100%) rename src/containers/content/HelpCenterContent/{schema.js => schema.ts} (100%) rename src/containers/content/JobContent/{schema.js => schema.ts} (100%) rename src/containers/content/MeetupsContent/{schema.js => schema.ts} (100%) rename src/containers/content/MembershipContent/{schema.js => schema.ts} (100%) rename src/containers/content/PostContent/{schema.js => schema.ts} (100%) rename src/containers/content/RecipesContent/{schema.js => schema.ts} (100%) rename src/containers/content/RepoContent/{schema.js => schema.ts} (100%) rename src/containers/content/SponsorContent/{schema.js => schema.ts} (100%) rename src/containers/content/SubscribeContent/{schema.js => schema.ts} (100%) rename src/containers/content/TrendingContent/{schema.js => schema.ts} (100%) rename src/containers/content/UserContent/{schema.js => schema.ts} (100%) rename src/containers/content/VideoContent/{schema.js => schema.ts} (100%) rename src/containers/content/WorksContent/{schema.js => schema.ts} (100%) rename src/containers/digest/ArticleDigest/{schema.js => schema.ts} (100%) rename src/containers/digest/CommunityDigest/{schema.js => schema.ts} (100%) rename src/containers/editor/AccountEditor/{schema.js => schema.ts} (100%) rename src/containers/editor/ArticleEditor/{schema.js => schema.ts} (100%) rename src/containers/editor/CommunityEditor/{schema.js => schema.ts} (100%) rename src/containers/editor/JobEditor/{schema.js => schema.ts} (100%) rename src/containers/editor/PostEditor/{schema.js => schema.ts} (100%) rename src/containers/editor/RepoEditor/{schema.js => schema.ts} (100%) rename src/containers/editor/RichEditor/{schema.js => schema.ts} (100%) rename src/containers/editor/VideoEditor/{schema.js => schema.ts} (100%) rename src/containers/editor/WorksEditor/{schema.js => schema.ts} (100%) rename src/containers/thread/CheatsheetThread/{schema.js => schema.ts} (100%) rename src/containers/thread/JobsThread/{schema.js => schema.ts} (100%) rename src/containers/thread/PostsThread/{schema.js => schema.ts} (100%) rename src/containers/thread/ReposThread/{schema.js => schema.ts} (100%) rename src/containers/thread/RoadmapThread/{schema.js => schema.ts} (100%) rename src/containers/thread/UsersThread/{schema.js => schema.ts} (100%) rename src/containers/thread/VideosThread/{schema.js => schema.ts} (100%) rename src/containers/thread/WikiThread/{schema.js => schema.ts} (100%) rename src/containers/tool/AvatarAdder/{schema.js => schema.ts} (100%) rename src/containers/tool/C11NSettingPanel/{schema.js => schema.ts} (100%) rename src/containers/tool/Cashier/{schema.js => schema.ts} (100%) rename src/containers/tool/CommunityJoinBadge/{schema.js => schema.ts} (100%) rename src/containers/tool/CommunitySetter/{schema.js => schema.ts} (100%) rename src/containers/tool/Doraemon/{schema.js => schema.ts} (100%) rename src/containers/tool/FavoritesCats/{schema.js => schema.ts} (100%) rename src/containers/tool/GirlVerifier/{schema.js => schema.ts} (100%) rename src/containers/tool/Informer/{schema.js => schema.ts} (100%) rename src/containers/tool/JoinModal/{schema.js => schema.ts} (100%) rename src/containers/tool/MailBox/{schema.js => schema.ts} (100%) rename src/containers/unit/ArticleAuthorCard/{schema.js => schema.ts} (100%) rename src/containers/unit/ArticleBodyHeader/{schema.js => schema.ts} (100%) rename src/containers/unit/ArticleFooter/{schema.js => schema.ts} (100%) rename src/containers/unit/ArticleViewerHeader/{schema.js => schema.ts} (100%) rename src/containers/unit/Comments/{schema.js => schema.ts} (100%) rename src/containers/unit/Header/{schema.js => schema.ts} (100%) rename src/containers/unit/Labeler/{schema.js => schema.ts} (100%) rename src/containers/unit/ModeLineMenu/{schema.js => schema.ts} (100%) rename src/containers/unit/Sidebar/{schema.js => schema.ts} (100%) rename src/containers/unit/TagsBar/{schema.js => schema.ts} (100%) rename src/containers/user/UserBilling/{schema.js => schema.ts} (100%) rename src/containers/user/UserFavorited/{schema.js => schema.ts} (100%) rename src/containers/user/UserLister/{schema.js => schema.ts} (100%) rename src/containers/user/UserProfile/{schema.js => schema.ts} (100%) rename src/containers/user/UserPublished/{schema.js => schema.ts} (100%) rename src/containers/user/UserPublishedComments/{schema.js => schema.ts} (100%) rename src/containers/user/UserSettings/{schema.js => schema.ts} (100%) rename src/containers/user/UserStared/{schema.js => schema.ts} (100%) rename src/containers/viewer/JobViewer/{schema.js => schema.ts} (100%) rename src/containers/viewer/MailsViewer/{schema.js => schema.ts} (100%) rename src/containers/viewer/PostViewer/{schema.js => schema.ts} (100%) rename src/containers/viewer/RepoViewer/{schema.js => schema.ts} (100%) rename src/containers/viewer/VideoViewer/{schema.js => schema.ts} (100%) rename src/services/github_api/{schema.js => schema.ts} (100%) diff --git a/src/containers/content/CommunityContent/schema.js b/src/containers/content/CommunityContent/schema.ts similarity index 100% rename from src/containers/content/CommunityContent/schema.js rename to src/containers/content/CommunityContent/schema.ts diff --git a/src/containers/content/CoolGuideContent/schema.js b/src/containers/content/CoolGuideContent/schema.ts similarity index 100% rename from src/containers/content/CoolGuideContent/schema.js rename to src/containers/content/CoolGuideContent/schema.ts diff --git a/src/containers/content/DiscoveryContent/schema.js b/src/containers/content/DiscoveryContent/schema.ts similarity index 100% rename from src/containers/content/DiscoveryContent/schema.js rename to src/containers/content/DiscoveryContent/schema.ts diff --git a/src/containers/content/FriendsContent/schema.js b/src/containers/content/FriendsContent/schema.ts similarity index 100% rename from src/containers/content/FriendsContent/schema.js rename to src/containers/content/FriendsContent/schema.ts diff --git a/src/containers/content/HaveADrinkContent/schema.js b/src/containers/content/HaveADrinkContent/schema.ts similarity index 100% rename from src/containers/content/HaveADrinkContent/schema.js rename to src/containers/content/HaveADrinkContent/schema.ts diff --git a/src/containers/content/HelpCenterContent/schema.js b/src/containers/content/HelpCenterContent/schema.ts similarity index 100% rename from src/containers/content/HelpCenterContent/schema.js rename to src/containers/content/HelpCenterContent/schema.ts diff --git a/src/containers/content/JobContent/schema.js b/src/containers/content/JobContent/schema.ts similarity index 100% rename from src/containers/content/JobContent/schema.js rename to src/containers/content/JobContent/schema.ts diff --git a/src/containers/content/MeetupsContent/schema.js b/src/containers/content/MeetupsContent/schema.ts similarity index 100% rename from src/containers/content/MeetupsContent/schema.js rename to src/containers/content/MeetupsContent/schema.ts diff --git a/src/containers/content/MembershipContent/schema.js b/src/containers/content/MembershipContent/schema.ts similarity index 100% rename from src/containers/content/MembershipContent/schema.js rename to src/containers/content/MembershipContent/schema.ts diff --git a/src/containers/content/PostContent/schema.js b/src/containers/content/PostContent/schema.ts similarity index 100% rename from src/containers/content/PostContent/schema.js rename to src/containers/content/PostContent/schema.ts diff --git a/src/containers/content/RecipesContent/schema.js b/src/containers/content/RecipesContent/schema.ts similarity index 100% rename from src/containers/content/RecipesContent/schema.js rename to src/containers/content/RecipesContent/schema.ts diff --git a/src/containers/content/RepoContent/schema.js b/src/containers/content/RepoContent/schema.ts similarity index 100% rename from src/containers/content/RepoContent/schema.js rename to src/containers/content/RepoContent/schema.ts diff --git a/src/containers/content/SponsorContent/schema.js b/src/containers/content/SponsorContent/schema.ts similarity index 100% rename from src/containers/content/SponsorContent/schema.js rename to src/containers/content/SponsorContent/schema.ts diff --git a/src/containers/content/SubscribeContent/schema.js b/src/containers/content/SubscribeContent/schema.ts similarity index 100% rename from src/containers/content/SubscribeContent/schema.js rename to src/containers/content/SubscribeContent/schema.ts diff --git a/src/containers/content/TrendingContent/schema.js b/src/containers/content/TrendingContent/schema.ts similarity index 100% rename from src/containers/content/TrendingContent/schema.js rename to src/containers/content/TrendingContent/schema.ts diff --git a/src/containers/content/UserContent/schema.js b/src/containers/content/UserContent/schema.ts similarity index 100% rename from src/containers/content/UserContent/schema.js rename to src/containers/content/UserContent/schema.ts diff --git a/src/containers/content/VideoContent/schema.js b/src/containers/content/VideoContent/schema.ts similarity index 100% rename from src/containers/content/VideoContent/schema.js rename to src/containers/content/VideoContent/schema.ts diff --git a/src/containers/content/WorksContent/schema.js b/src/containers/content/WorksContent/schema.ts similarity index 100% rename from src/containers/content/WorksContent/schema.js rename to src/containers/content/WorksContent/schema.ts diff --git a/src/containers/digest/ArticleDigest/schema.js b/src/containers/digest/ArticleDigest/schema.ts similarity index 100% rename from src/containers/digest/ArticleDigest/schema.js rename to src/containers/digest/ArticleDigest/schema.ts diff --git a/src/containers/digest/CommunityDigest/schema.js b/src/containers/digest/CommunityDigest/schema.ts similarity index 100% rename from src/containers/digest/CommunityDigest/schema.js rename to src/containers/digest/CommunityDigest/schema.ts diff --git a/src/containers/editor/AccountEditor/schema.js b/src/containers/editor/AccountEditor/schema.ts similarity index 100% rename from src/containers/editor/AccountEditor/schema.js rename to src/containers/editor/AccountEditor/schema.ts diff --git a/src/containers/editor/ArticleEditor/schema.js b/src/containers/editor/ArticleEditor/schema.ts similarity index 100% rename from src/containers/editor/ArticleEditor/schema.js rename to src/containers/editor/ArticleEditor/schema.ts diff --git a/src/containers/editor/CommunityEditor/schema.js b/src/containers/editor/CommunityEditor/schema.ts similarity index 100% rename from src/containers/editor/CommunityEditor/schema.js rename to src/containers/editor/CommunityEditor/schema.ts diff --git a/src/containers/editor/JobEditor/schema.js b/src/containers/editor/JobEditor/schema.ts similarity index 100% rename from src/containers/editor/JobEditor/schema.js rename to src/containers/editor/JobEditor/schema.ts diff --git a/src/containers/editor/PostEditor/schema.js b/src/containers/editor/PostEditor/schema.ts similarity index 100% rename from src/containers/editor/PostEditor/schema.js rename to src/containers/editor/PostEditor/schema.ts diff --git a/src/containers/editor/RepoEditor/schema.js b/src/containers/editor/RepoEditor/schema.ts similarity index 100% rename from src/containers/editor/RepoEditor/schema.js rename to src/containers/editor/RepoEditor/schema.ts diff --git a/src/containers/editor/RichEditor/schema.js b/src/containers/editor/RichEditor/schema.ts similarity index 100% rename from src/containers/editor/RichEditor/schema.js rename to src/containers/editor/RichEditor/schema.ts diff --git a/src/containers/editor/VideoEditor/schema.js b/src/containers/editor/VideoEditor/schema.ts similarity index 100% rename from src/containers/editor/VideoEditor/schema.js rename to src/containers/editor/VideoEditor/schema.ts diff --git a/src/containers/editor/WorksEditor/schema.js b/src/containers/editor/WorksEditor/schema.ts similarity index 100% rename from src/containers/editor/WorksEditor/schema.js rename to src/containers/editor/WorksEditor/schema.ts diff --git a/src/containers/thread/CheatsheetThread/schema.js b/src/containers/thread/CheatsheetThread/schema.ts similarity index 100% rename from src/containers/thread/CheatsheetThread/schema.js rename to src/containers/thread/CheatsheetThread/schema.ts diff --git a/src/containers/thread/JobsThread/schema.js b/src/containers/thread/JobsThread/schema.ts similarity index 100% rename from src/containers/thread/JobsThread/schema.js rename to src/containers/thread/JobsThread/schema.ts diff --git a/src/containers/thread/PostsThread/schema.js b/src/containers/thread/PostsThread/schema.ts similarity index 100% rename from src/containers/thread/PostsThread/schema.js rename to src/containers/thread/PostsThread/schema.ts diff --git a/src/containers/thread/ReposThread/schema.js b/src/containers/thread/ReposThread/schema.ts similarity index 100% rename from src/containers/thread/ReposThread/schema.js rename to src/containers/thread/ReposThread/schema.ts diff --git a/src/containers/thread/RoadmapThread/schema.js b/src/containers/thread/RoadmapThread/schema.ts similarity index 100% rename from src/containers/thread/RoadmapThread/schema.js rename to src/containers/thread/RoadmapThread/schema.ts diff --git a/src/containers/thread/UsersThread/schema.js b/src/containers/thread/UsersThread/schema.ts similarity index 100% rename from src/containers/thread/UsersThread/schema.js rename to src/containers/thread/UsersThread/schema.ts diff --git a/src/containers/thread/VideosThread/schema.js b/src/containers/thread/VideosThread/schema.ts similarity index 100% rename from src/containers/thread/VideosThread/schema.js rename to src/containers/thread/VideosThread/schema.ts diff --git a/src/containers/thread/WikiThread/schema.js b/src/containers/thread/WikiThread/schema.ts similarity index 100% rename from src/containers/thread/WikiThread/schema.js rename to src/containers/thread/WikiThread/schema.ts diff --git a/src/containers/tool/AvatarAdder/schema.js b/src/containers/tool/AvatarAdder/schema.ts similarity index 100% rename from src/containers/tool/AvatarAdder/schema.js rename to src/containers/tool/AvatarAdder/schema.ts diff --git a/src/containers/tool/C11NSettingPanel/schema.js b/src/containers/tool/C11NSettingPanel/schema.ts similarity index 100% rename from src/containers/tool/C11NSettingPanel/schema.js rename to src/containers/tool/C11NSettingPanel/schema.ts diff --git a/src/containers/tool/Cashier/schema.js b/src/containers/tool/Cashier/schema.ts similarity index 100% rename from src/containers/tool/Cashier/schema.js rename to src/containers/tool/Cashier/schema.ts diff --git a/src/containers/tool/CommunityJoinBadge/schema.js b/src/containers/tool/CommunityJoinBadge/schema.ts similarity index 100% rename from src/containers/tool/CommunityJoinBadge/schema.js rename to src/containers/tool/CommunityJoinBadge/schema.ts diff --git a/src/containers/tool/CommunitySetter/schema.js b/src/containers/tool/CommunitySetter/schema.ts similarity index 100% rename from src/containers/tool/CommunitySetter/schema.js rename to src/containers/tool/CommunitySetter/schema.ts diff --git a/src/containers/tool/Doraemon/schema.js b/src/containers/tool/Doraemon/schema.ts similarity index 100% rename from src/containers/tool/Doraemon/schema.js rename to src/containers/tool/Doraemon/schema.ts diff --git a/src/containers/tool/FavoritesCats/schema.js b/src/containers/tool/FavoritesCats/schema.ts similarity index 100% rename from src/containers/tool/FavoritesCats/schema.js rename to src/containers/tool/FavoritesCats/schema.ts diff --git a/src/containers/tool/GirlVerifier/schema.js b/src/containers/tool/GirlVerifier/schema.ts similarity index 100% rename from src/containers/tool/GirlVerifier/schema.js rename to src/containers/tool/GirlVerifier/schema.ts diff --git a/src/containers/tool/Informer/schema.js b/src/containers/tool/Informer/schema.ts similarity index 100% rename from src/containers/tool/Informer/schema.js rename to src/containers/tool/Informer/schema.ts diff --git a/src/containers/tool/JoinModal/schema.js b/src/containers/tool/JoinModal/schema.ts similarity index 100% rename from src/containers/tool/JoinModal/schema.js rename to src/containers/tool/JoinModal/schema.ts diff --git a/src/containers/tool/MailBox/schema.js b/src/containers/tool/MailBox/schema.ts similarity index 100% rename from src/containers/tool/MailBox/schema.js rename to src/containers/tool/MailBox/schema.ts diff --git a/src/containers/unit/ArticleAuthorCard/schema.js b/src/containers/unit/ArticleAuthorCard/schema.ts similarity index 100% rename from src/containers/unit/ArticleAuthorCard/schema.js rename to src/containers/unit/ArticleAuthorCard/schema.ts diff --git a/src/containers/unit/ArticleBodyHeader/schema.js b/src/containers/unit/ArticleBodyHeader/schema.ts similarity index 100% rename from src/containers/unit/ArticleBodyHeader/schema.js rename to src/containers/unit/ArticleBodyHeader/schema.ts diff --git a/src/containers/unit/ArticleFooter/schema.js b/src/containers/unit/ArticleFooter/schema.ts similarity index 100% rename from src/containers/unit/ArticleFooter/schema.js rename to src/containers/unit/ArticleFooter/schema.ts diff --git a/src/containers/unit/ArticleViewerHeader/schema.js b/src/containers/unit/ArticleViewerHeader/schema.ts similarity index 100% rename from src/containers/unit/ArticleViewerHeader/schema.js rename to src/containers/unit/ArticleViewerHeader/schema.ts diff --git a/src/containers/unit/Comments/schema.js b/src/containers/unit/Comments/schema.ts similarity index 100% rename from src/containers/unit/Comments/schema.js rename to src/containers/unit/Comments/schema.ts diff --git a/src/containers/unit/Header/schema.js b/src/containers/unit/Header/schema.ts similarity index 100% rename from src/containers/unit/Header/schema.js rename to src/containers/unit/Header/schema.ts diff --git a/src/containers/unit/Labeler/schema.js b/src/containers/unit/Labeler/schema.ts similarity index 100% rename from src/containers/unit/Labeler/schema.js rename to src/containers/unit/Labeler/schema.ts diff --git a/src/containers/unit/ModeLineMenu/schema.js b/src/containers/unit/ModeLineMenu/schema.ts similarity index 100% rename from src/containers/unit/ModeLineMenu/schema.js rename to src/containers/unit/ModeLineMenu/schema.ts diff --git a/src/containers/unit/Sidebar/schema.js b/src/containers/unit/Sidebar/schema.ts similarity index 100% rename from src/containers/unit/Sidebar/schema.js rename to src/containers/unit/Sidebar/schema.ts diff --git a/src/containers/unit/TagsBar/schema.js b/src/containers/unit/TagsBar/schema.ts similarity index 100% rename from src/containers/unit/TagsBar/schema.js rename to src/containers/unit/TagsBar/schema.ts diff --git a/src/containers/user/UserBilling/schema.js b/src/containers/user/UserBilling/schema.ts similarity index 100% rename from src/containers/user/UserBilling/schema.js rename to src/containers/user/UserBilling/schema.ts diff --git a/src/containers/user/UserFavorited/schema.js b/src/containers/user/UserFavorited/schema.ts similarity index 100% rename from src/containers/user/UserFavorited/schema.js rename to src/containers/user/UserFavorited/schema.ts diff --git a/src/containers/user/UserLister/schema.js b/src/containers/user/UserLister/schema.ts similarity index 100% rename from src/containers/user/UserLister/schema.js rename to src/containers/user/UserLister/schema.ts diff --git a/src/containers/user/UserProfile/schema.js b/src/containers/user/UserProfile/schema.ts similarity index 100% rename from src/containers/user/UserProfile/schema.js rename to src/containers/user/UserProfile/schema.ts diff --git a/src/containers/user/UserPublished/schema.js b/src/containers/user/UserPublished/schema.ts similarity index 100% rename from src/containers/user/UserPublished/schema.js rename to src/containers/user/UserPublished/schema.ts diff --git a/src/containers/user/UserPublishedComments/schema.js b/src/containers/user/UserPublishedComments/schema.ts similarity index 100% rename from src/containers/user/UserPublishedComments/schema.js rename to src/containers/user/UserPublishedComments/schema.ts diff --git a/src/containers/user/UserSettings/schema.js b/src/containers/user/UserSettings/schema.ts similarity index 100% rename from src/containers/user/UserSettings/schema.js rename to src/containers/user/UserSettings/schema.ts diff --git a/src/containers/user/UserStared/schema.js b/src/containers/user/UserStared/schema.ts similarity index 100% rename from src/containers/user/UserStared/schema.js rename to src/containers/user/UserStared/schema.ts diff --git a/src/containers/viewer/JobViewer/schema.js b/src/containers/viewer/JobViewer/schema.ts similarity index 100% rename from src/containers/viewer/JobViewer/schema.js rename to src/containers/viewer/JobViewer/schema.ts diff --git a/src/containers/viewer/MailsViewer/schema.js b/src/containers/viewer/MailsViewer/schema.ts similarity index 100% rename from src/containers/viewer/MailsViewer/schema.js rename to src/containers/viewer/MailsViewer/schema.ts diff --git a/src/containers/viewer/PostViewer/schema.js b/src/containers/viewer/PostViewer/schema.ts similarity index 100% rename from src/containers/viewer/PostViewer/schema.js rename to src/containers/viewer/PostViewer/schema.ts diff --git a/src/containers/viewer/RepoViewer/schema.js b/src/containers/viewer/RepoViewer/schema.ts similarity index 100% rename from src/containers/viewer/RepoViewer/schema.js rename to src/containers/viewer/RepoViewer/schema.ts diff --git a/src/containers/viewer/VideoViewer/schema.js b/src/containers/viewer/VideoViewer/schema.ts similarity index 100% rename from src/containers/viewer/VideoViewer/schema.js rename to src/containers/viewer/VideoViewer/schema.ts diff --git a/src/services/github_api/schema.js b/src/services/github_api/schema.ts similarity index 100% rename from src/services/github_api/schema.js rename to src/services/github_api/schema.ts From bb838d27a2385f376a679527f305b26908b12eb4 Mon Sep 17 00:00:00 2001 From: mydearxym Date: Mon, 15 Mar 2021 23:56:08 +0800 Subject: [PATCH 2/4] chore(ts-workflow): constant.js -> ts --- src/components/NaviCatalog/{constant.js => constant.ts} | 0 src/components/TheAvatar/{constant.js => constant.ts} | 0 src/components/Tooltip/{constant.js => constant.ts} | 0 .../content/HelpCenterContent/{constant.js => constant.ts} | 0 src/containers/content/WorksContent/{constant.js => constant.ts} | 0 src/containers/editor/ArticleEditor/{constant.js => constant.ts} | 0 src/containers/editor/WorksEditor/{constant.js => constant.ts} | 0 7 files changed, 0 insertions(+), 0 deletions(-) rename src/components/NaviCatalog/{constant.js => constant.ts} (100%) rename src/components/TheAvatar/{constant.js => constant.ts} (100%) rename src/components/Tooltip/{constant.js => constant.ts} (100%) rename src/containers/content/HelpCenterContent/{constant.js => constant.ts} (100%) rename src/containers/content/WorksContent/{constant.js => constant.ts} (100%) rename src/containers/editor/ArticleEditor/{constant.js => constant.ts} (100%) rename src/containers/editor/WorksEditor/{constant.js => constant.ts} (100%) diff --git a/src/components/NaviCatalog/constant.js b/src/components/NaviCatalog/constant.ts similarity index 100% rename from src/components/NaviCatalog/constant.js rename to src/components/NaviCatalog/constant.ts diff --git a/src/components/TheAvatar/constant.js b/src/components/TheAvatar/constant.ts similarity index 100% rename from src/components/TheAvatar/constant.js rename to src/components/TheAvatar/constant.ts diff --git a/src/components/Tooltip/constant.js b/src/components/Tooltip/constant.ts similarity index 100% rename from src/components/Tooltip/constant.js rename to src/components/Tooltip/constant.ts diff --git a/src/containers/content/HelpCenterContent/constant.js b/src/containers/content/HelpCenterContent/constant.ts similarity index 100% rename from src/containers/content/HelpCenterContent/constant.js rename to src/containers/content/HelpCenterContent/constant.ts diff --git a/src/containers/content/WorksContent/constant.js b/src/containers/content/WorksContent/constant.ts similarity index 100% rename from src/containers/content/WorksContent/constant.js rename to src/containers/content/WorksContent/constant.ts diff --git a/src/containers/editor/ArticleEditor/constant.js b/src/containers/editor/ArticleEditor/constant.ts similarity index 100% rename from src/containers/editor/ArticleEditor/constant.js rename to src/containers/editor/ArticleEditor/constant.ts diff --git a/src/containers/editor/WorksEditor/constant.js b/src/containers/editor/WorksEditor/constant.ts similarity index 100% rename from src/containers/editor/WorksEditor/constant.js rename to src/containers/editor/WorksEditor/constant.ts From ac42020bba91a7ea4f65834ed90493909a9e4302 Mon Sep 17 00:00:00 2001 From: mydearxym Date: Mon, 15 Mar 2021 23:57:23 +0800 Subject: [PATCH 3/4] chore(ts-workflow): change schema generator --- utils/scripts/generators/container/index.js | 4 ++-- .../generators/container/{schema.js.hbs => schema.ts.hbs} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename utils/scripts/generators/container/{schema.js.hbs => schema.ts.hbs} (100%) diff --git a/utils/scripts/generators/container/index.js b/utils/scripts/generators/container/index.js index cacec8212..d52ad757a 100755 --- a/utils/scripts/generators/container/index.js +++ b/utils/scripts/generators/container/index.js @@ -116,8 +116,8 @@ module.exports = { if (data.wantSchema) { actions.push({ type: 'add', - path: `${TARGET_DIR}/${data.scope}/{{properCase name}}/schema.js`, - templateFile: './container/schema.js.hbs', + path: `${TARGET_DIR}/${data.scope}/{{properCase name}}/schema.ts`, + templateFile: './container/schema.ts.hbs', abortOnFail: true, }) } diff --git a/utils/scripts/generators/container/schema.js.hbs b/utils/scripts/generators/container/schema.ts.hbs similarity index 100% rename from utils/scripts/generators/container/schema.js.hbs rename to utils/scripts/generators/container/schema.ts.hbs From ab8fa3b5fbf5c66a506121b3b813cb7ee40c97f8 Mon Sep 17 00:00:00 2001 From: mydearxym Date: Tue, 16 Mar 2021 00:12:46 +0800 Subject: [PATCH 4/4] chore(ts-workflow): more schema js -> ts --- src/schemas/fragments/{base.js => base.ts} | 0 src/schemas/fragments/{index.js => index.ts} | 0 src/schemas/fragments/{paged.js => paged.ts} | 0 src/schemas/{index.js => index.ts} | 0 src/schemas/pages/{action.js => action.ts} | 0 .../pages/{cheatsheet.js => cheatsheet.ts} | 0 src/schemas/pages/{comment.js => comment.ts} | 0 .../pages/{community.js => community.ts} | 0 src/schemas/pages/{index.js => index.ts} | 0 src/schemas/pages/{job.js => job.ts} | 0 src/schemas/pages/{mail.js => mail.ts} | 0 src/schemas/pages/{misc.js => misc.ts} | 0 src/schemas/pages/{post.js => post.ts} | 0 src/schemas/pages/{repo.js => repo.ts} | 0 src/schemas/pages/{user.js => user.ts} | 0 src/schemas/pages/{video.js => video.ts} | 0 src/schemas/pages/{wiki.js => wiki.ts} | 0 src/types/index.ts | 58 ------------------- 18 files changed, 58 deletions(-) rename src/schemas/fragments/{base.js => base.ts} (100%) rename src/schemas/fragments/{index.js => index.ts} (100%) rename src/schemas/fragments/{paged.js => paged.ts} (100%) rename src/schemas/{index.js => index.ts} (100%) rename src/schemas/pages/{action.js => action.ts} (100%) rename src/schemas/pages/{cheatsheet.js => cheatsheet.ts} (100%) rename src/schemas/pages/{comment.js => comment.ts} (100%) rename src/schemas/pages/{community.js => community.ts} (100%) rename src/schemas/pages/{index.js => index.ts} (100%) rename src/schemas/pages/{job.js => job.ts} (100%) rename src/schemas/pages/{mail.js => mail.ts} (100%) rename src/schemas/pages/{misc.js => misc.ts} (100%) rename src/schemas/pages/{post.js => post.ts} (100%) rename src/schemas/pages/{repo.js => repo.ts} (100%) rename src/schemas/pages/{user.js => user.ts} (100%) rename src/schemas/pages/{video.js => video.ts} (100%) rename src/schemas/pages/{wiki.js => wiki.ts} (100%) delete mode 100644 src/types/index.ts diff --git a/src/schemas/fragments/base.js b/src/schemas/fragments/base.ts similarity index 100% rename from src/schemas/fragments/base.js rename to src/schemas/fragments/base.ts diff --git a/src/schemas/fragments/index.js b/src/schemas/fragments/index.ts similarity index 100% rename from src/schemas/fragments/index.js rename to src/schemas/fragments/index.ts diff --git a/src/schemas/fragments/paged.js b/src/schemas/fragments/paged.ts similarity index 100% rename from src/schemas/fragments/paged.js rename to src/schemas/fragments/paged.ts diff --git a/src/schemas/index.js b/src/schemas/index.ts similarity index 100% rename from src/schemas/index.js rename to src/schemas/index.ts diff --git a/src/schemas/pages/action.js b/src/schemas/pages/action.ts similarity index 100% rename from src/schemas/pages/action.js rename to src/schemas/pages/action.ts diff --git a/src/schemas/pages/cheatsheet.js b/src/schemas/pages/cheatsheet.ts similarity index 100% rename from src/schemas/pages/cheatsheet.js rename to src/schemas/pages/cheatsheet.ts diff --git a/src/schemas/pages/comment.js b/src/schemas/pages/comment.ts similarity index 100% rename from src/schemas/pages/comment.js rename to src/schemas/pages/comment.ts diff --git a/src/schemas/pages/community.js b/src/schemas/pages/community.ts similarity index 100% rename from src/schemas/pages/community.js rename to src/schemas/pages/community.ts diff --git a/src/schemas/pages/index.js b/src/schemas/pages/index.ts similarity index 100% rename from src/schemas/pages/index.js rename to src/schemas/pages/index.ts diff --git a/src/schemas/pages/job.js b/src/schemas/pages/job.ts similarity index 100% rename from src/schemas/pages/job.js rename to src/schemas/pages/job.ts diff --git a/src/schemas/pages/mail.js b/src/schemas/pages/mail.ts similarity index 100% rename from src/schemas/pages/mail.js rename to src/schemas/pages/mail.ts diff --git a/src/schemas/pages/misc.js b/src/schemas/pages/misc.ts similarity index 100% rename from src/schemas/pages/misc.js rename to src/schemas/pages/misc.ts diff --git a/src/schemas/pages/post.js b/src/schemas/pages/post.ts similarity index 100% rename from src/schemas/pages/post.js rename to src/schemas/pages/post.ts diff --git a/src/schemas/pages/repo.js b/src/schemas/pages/repo.ts similarity index 100% rename from src/schemas/pages/repo.js rename to src/schemas/pages/repo.ts diff --git a/src/schemas/pages/user.js b/src/schemas/pages/user.ts similarity index 100% rename from src/schemas/pages/user.js rename to src/schemas/pages/user.ts diff --git a/src/schemas/pages/video.js b/src/schemas/pages/video.ts similarity index 100% rename from src/schemas/pages/video.js rename to src/schemas/pages/video.ts diff --git a/src/schemas/pages/wiki.js b/src/schemas/pages/wiki.ts similarity index 100% rename from src/schemas/pages/wiki.js rename to src/schemas/pages/wiki.ts diff --git a/src/types/index.ts b/src/types/index.ts deleted file mode 100644 index 70d59d0d2..000000000 --- a/src/types/index.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { TRootStore as RootStoreInterface } from '@/stores/RootStore' - -export type TRootStore = RootStoreInterface - -// c# like -export type Nullable = T | null - -export type TCommunity = { - id: string - title: string - logo: string - raw: string -} - -export type TAccount = { - id: string - login: string - nickname: string - avatar: string - customization?: { - theme: string - bannerLayout: string - } - // ... -} -export type TArticle = { - id: string - title: string - body: string - author: { - id: string - login: string - nickname: string - avatar: string - } - // ... -} - -export type TViewing = { - community: TCommunity - post: TArticle -} - -export type TTheme = ((obj: any) => unknown) | string - -// google analytis format -export type GA_EVENT = { - action: string - category: string - label: string - value: string -} - -export type TSEO = { - url: string - title: string - description: string -}