Skip to content

Commit 7cdff84

Browse files
authored
remove template entries from the directory (#2354)
1 parent ebeab4a commit 7cdff84

File tree

18 files changed

+76
-203
lines changed

18 files changed

+76
-203
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@
6363
"newArchitecture": false,
6464
"configPlugin": false,
6565
"unmaintained": false,
66-
"dev": false,
67-
"template": false
66+
"dev": false
6867
}
6968
```
7069

@@ -143,8 +142,6 @@
143142
**(boolean)** - signify that a library is no longer maintained. You can provide alternative or replacement libraries with the `alternatives` field, if needed.
144143
- #### `dev`
145144
**(boolean)** - signify that a library is a development tool or is only a part of development process.
146-
- #### `template`
147-
**(boolean)** - signify that a library is a new project template.
148145
- #### `configPlugin`
149146
**(boolean \| string \[URL to third-party config plugin\])** - Indicates if the library includes an [Expo config plugin](https://docs.expo.dev/config-plugins/introduction/). If the plugin is provided by a third party, supply the URL as a string. This field is optional and will be detected automatically if omitted.
150147
- #### `newArchitecture`

components/CompatibilityTags.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,7 @@ export default function CompatibilityTags({ library, small }: Props) {
3737
small={small}
3838
/>
3939
) : null}
40-
{library.template ? (
41-
<Tag
42-
label="Template"
43-
tagStyle={tw`border-[#f5c6e8] bg-[#fce1f5] dark:border-[#52213e] dark:bg-[#37172e]`}
44-
icon={null}
45-
small={small}
46-
/>
47-
) : null}
48-
{!library.dev && !library.template && <NewArchitectureTag library={library} small={small} />}
40+
{!library.dev && <NewArchitectureTag library={library} small={small} />}
4941
{platforms.map(platform =>
5042
platform ? (
5143
<Tag

components/Filters/helpers.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ export const FILTER_TYPE: FilterParamsType[] = [
105105
param: 'skipTools',
106106
title: 'Hide development tools',
107107
},
108-
{
109-
param: 'skipTemplates',
110-
title: 'Hide templates',
111-
},
112108
];
113109

114110
export const FILTER_MODULE_TYPE: FilterParamsType[] = [

components/Library/MetaData.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function generateData({
4444
npm,
4545
npmPkg,
4646
matchingScoreModifiers,
47-
template,
4847
}: LibraryType): MetadataEntryType[] {
4948
return [
5049
{
@@ -83,11 +82,7 @@ function generateData({
8382
? {
8483
id: 'dependencies',
8584
icon: <Dependency style={tw`text-icon`} />,
86-
content: template ? (
87-
<P style={linkStyle}>
88-
{`${github.stats.dependencies} ${pluralize('dependency', github.stats?.dependencies ?? 0)}`}
89-
</P>
90-
) : (
85+
content: (
9186
<A
9287
href={`https://www.npmjs.com/package/${npmPkg}?activeTab=dependencies`}
9388
style={linkStyle}>

components/Package/DetailsNavigation.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function DetailsNavigation({ library }: Props) {
2020

2121
return (
2222
<Navigation
23-
title={`${library.template ? 'Template' : 'Package'} information`}
23+
title="Package information"
2424
style={[tw`gap-1 pb-3 pt-9`, isSmallScreen && tw`gap-1.5 pt-5`]}
2525
subHeader={
2626
library.unmaintained ? (
@@ -59,13 +59,11 @@ export default function DetailsNavigation({ library }: Props) {
5959
}>
6060
<ContentContainer style={tw`flex-row gap-2 px-5`}>
6161
<NavigationTab title="Overview" path={`/package/${library.npmPkg}`} />
62-
{!library.template && (
63-
<NavigationTab
64-
title="Versions"
65-
counter={library.npm?.versionsCount}
66-
path={`/package/${library.npmPkg}/versions`}
67-
/>
68-
)}
62+
<NavigationTab
63+
title="Versions"
64+
counter={library.npm?.versionsCount}
65+
path={`/package/${library.npmPkg}/versions`}
66+
/>
6967
<NavigationTab title="Score" path={`/package/${library.npmPkg}/score`} />
7068
</ContentContainer>
7169
</Navigation>

components/Package/MarkdownContentBox/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ export default function MarkdownContentBox({ packageName, library, loader = fals
5555
{
5656
title: 'Readme' as const,
5757
Icon: ReadmeFile,
58-
url: library?.template
59-
? getTabContentUrl(library, 'README.md')
60-
: `https://unpkg.com/${packageName}/README.md`,
58+
url: `https://unpkg.com/${packageName}/README.md`,
6159
},
6260
...(library?.github?.hasChangelog
6361
? [

pages/api/libraries/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
9797
newArchitecture: parsedQuery.newArchitecture,
9898
skipLibs: parsedQuery.skipLibs,
9999
skipTools: parsedQuery.skipTools,
100-
skipTemplates: parsedQuery.skipTemplates,
101100
expoModule: parsedQuery.expoModule,
102101
nitroModule: parsedQuery.nitroModule,
103102
turboModule: parsedQuery.turboModule,

react-native-libraries.json

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,16 +2357,6 @@
23572357
"ios": true,
23582358
"dev": true
23592359
},
2360-
{
2361-
"githubUrl": "https://github.com/akveo/react-native-ui-kitten/tree/master/src/components",
2362-
"npmPkg": "@ui-kitten/components",
2363-
"examples": ["https://github.com/akveo/kittenTricks"],
2364-
"ios": true,
2365-
"android": true,
2366-
"web": true,
2367-
"expoGo": true,
2368-
"template": true
2369-
},
23702360
{
23712361
"githubUrl": "https://github.com/lopespm/react-native-offscreen-toolbar",
23722362
"images": [
@@ -4238,12 +4228,6 @@
42384228
"web": true,
42394229
"npmPkg": "@react-native-community/geolocation"
42404230
},
4241-
{
4242-
"githubUrl": "https://github.com/react-native-community/react-native-template-typescript",
4243-
"ios": true,
4244-
"android": true,
4245-
"template": true
4246-
},
42474231
{
42484232
"githubUrl": "https://github.com/react-native-audio-toolkit/react-native-audio-toolkit",
42494233
"examples": [
@@ -6655,13 +6639,6 @@
66556639
"android": true,
66566640
"expoGo": true
66576641
},
6658-
{
6659-
"githubUrl": "https://github.com/gabimoncha/react-native-template",
6660-
"npmPkg": "@gabimoncha/react-native-template",
6661-
"ios": true,
6662-
"android": true,
6663-
"template": true
6664-
},
66656642
{
66666643
"githubUrl": "https://github.com/smallcase/react-native-simple-biometrics",
66676644
"examples": ["https://github.com/smallcase/react-native-simple-biometrics/tree/master/example"],
@@ -8356,13 +8333,6 @@
83568333
"android": true,
83578334
"expoGo": true
83588335
},
8359-
{
8360-
"githubUrl": "https://github.com/LunatiqueCoder/luna/tree/master/packages/create-luna-app",
8361-
"ios": true,
8362-
"android": true,
8363-
"web": true,
8364-
"template": true
8365-
},
83668336
{
83678337
"githubUrl": "https://github.com/LunatiqueCoder/react-native-media-console",
83688338
"images": [
@@ -8728,28 +8698,6 @@
87288698
"android": true,
87298699
"ios": true
87308700
},
8731-
{
8732-
"githubUrl": "https://github.com/talknagish/react-native-turbo-starter",
8733-
"ios": true,
8734-
"android": true,
8735-
"template": true,
8736-
"dev": true
8737-
},
8738-
{
8739-
"githubUrl": "https://github.com/leotm/react-native-template-new-architecture",
8740-
"ios": true,
8741-
"android": true,
8742-
"template": true
8743-
},
8744-
{
8745-
"githubUrl": "https://github.com/mmazzarolo/react-native-universal-monorepo",
8746-
"ios": true,
8747-
"android": true,
8748-
"macos": true,
8749-
"web": true,
8750-
"windows": true,
8751-
"template": true
8752-
},
87538701
{
87548702
"githubUrl": "https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts",
87558703
"images": [
@@ -9157,13 +9105,6 @@
91579105
"ios": true,
91589106
"android": true
91599107
},
9160-
{
9161-
"githubUrl": "https://github.com/Mindinventory/react-native-boilerplate",
9162-
"npmPkg": "@mindinventory/react-native-boilerplate",
9163-
"ios": true,
9164-
"android": true,
9165-
"template": true
9166-
},
91679108
{
91689109
"githubUrl": "https://github.com/Mindinventory/react-native-speed-view",
91699110
"npmPkg": "@mindinventory/react-native-speed-view",
@@ -10106,19 +10047,6 @@
1010610047
"ios": true,
1010710048
"android": true
1010810049
},
10109-
{
10110-
"githubUrl": "https://github.com/ory/kratos-selfservice-ui-react-native",
10111-
"examples": [
10112-
"https://www.ory.sh/docs/getting-started/integrate-auth/react-native",
10113-
"https://www.ory.sh/login-react-native-authentication-example-api/"
10114-
],
10115-
"images": ["https://www.ory.sh/docs/assets/images/1-78684ec591551f445a1064e274bf37b8.png"],
10116-
"ios": true,
10117-
"android": true,
10118-
"web": true,
10119-
"expoGo": true,
10120-
"template": true
10121-
},
1012210050
{
1012310051
"githubUrl": "https://github.com/mrpmohiburrahman/react-native-cone-slider",
1012410052
"examples": ["https://github.com/mrpmohiburrahman/react-native-cone-slider/tree/main/example"],
@@ -11270,13 +11198,6 @@
1127011198
],
1127111199
"windows": true
1127211200
},
11273-
{
11274-
"githubUrl": "https://github.com/tushu4212/rntemplate",
11275-
"npmPkg": "@tushar4212/rntemplate",
11276-
"ios": true,
11277-
"android": true,
11278-
"template": true
11279-
},
1128011201
{
1128111202
"githubUrl": "https://github.com/lodev09/react-native-true-sheet",
1128211203
"npmPkg": "@lodev09/react-native-true-sheet",

scenes/HomeScene.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ export default function HomeScene({
9292
<A href={urlWithQuery('/packages', { search: 'chart' })}>Charts</A>
9393
<A href={urlWithQuery('/packages', { search: 'color' })}>Color</A>
9494
<A href={urlWithQuery('/packages', { search: 'validation' })}>Data validation</A>
95-
<A href={urlWithQuery('/packages', { skipLibs: 'true', skipTemplates: 'true' })}>
96-
Development Tools
97-
</A>
95+
<A href={urlWithQuery('/packages', { skipLibs: 'true' })}>Development Tools</A>
9896
<A href={urlWithQuery('/packages', { search: 'gesture' })}>Gestures</A>
9997
<A href={urlWithQuery('/packages', { search: 'health' })}>Health</A>
10098
<A href={urlWithQuery('/packages', { search: 'i18n' })}>I18n</A>

scenes/PackageOverviewScene.tsx

Lines changed: 53 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function PackageOverviewScene({
5656
<>
5757
<PageMeta
5858
title={library.npmPkg}
59-
description={`See ${library.npmPkg} ${library.template ? 'template' : 'package'} detailed information and metadata`}
59+
description={`See ${library.npmPkg} package detailed information and metadata`}
6060
path="package"
6161
/>
6262
<DetailsNavigation library={library} />
@@ -118,66 +118,59 @@ export default function PackageOverviewScene({
118118
<MetaData library={library} secondary skipExamples />
119119
</View>
120120
</CollapsibleSection>
121-
{!library.template && (
122-
<>
123-
<H6Section style={tw`flex items-center justify-between`}>
124-
Downloads <Label style={tw`font-light text-secondary`}>Last month</Label>
125-
</H6Section>
126-
<View style={tw`gap-y-2`}>
127-
<View
128-
style={tw`h-[54px] gap-1.5 overflow-hidden rounded-lg border border-default`}>
129-
<DownloadsChart packageName={packageName} />
130-
</View>
131-
<View style={tw`flex-row flex-wrap items-center justify-between`}>
132-
<Caption style={tw`text-[13px] font-light`}>Popularity</Caption>
133-
<TrendingMark library={library} />
134-
</View>
135-
</View>
136-
</>
137-
)}
121+
<H6Section style={tw`flex items-center justify-between`}>
122+
Downloads <Label style={tw`font-light text-secondary`}>Last month</Label>
123+
</H6Section>
124+
<View style={tw`gap-y-2`}>
125+
<View style={tw`h-[54px] gap-1.5 overflow-hidden rounded-lg border border-default`}>
126+
<DownloadsChart packageName={packageName} />
127+
</View>
128+
<View style={tw`flex-row flex-wrap items-center justify-between`}>
129+
<Caption style={tw`text-[13px] font-light`}>Popularity</Caption>
130+
<TrendingMark library={library} />
131+
</View>
132+
</View>
138133
<TopicsSection topics={library.github.topics} />
139-
{!library.template && (
140-
<CollapsibleSection title="Package analysis">
141-
<ul
142-
style={tw`pl-4.5 m-0 gap-1.5 text-[13px] text-palette-gray4 dark:text-palette-gray5`}>
143-
<li>
144-
<A
145-
href={`https://node-modules.dev/grid/depth#install=${library.npmPkg}`}
146-
style={tw`text-[12px] font-light`}>
147-
Node Modules Inspector
148-
</A>
149-
</li>
150-
<li>
151-
<A
152-
href={`https://bundlephobia.com/package/${library.npmPkg}`}
153-
style={tw`text-[12px] font-light`}>
154-
Bundlephobia
155-
</A>
156-
</li>
157-
<li>
158-
<A
159-
href={`https://pkg-size.dev/${library.npmPkg}`}
160-
style={tw`text-[12px] font-light`}>
161-
pkg-size.dev
162-
</A>
163-
</li>
164-
<li>
165-
<A
166-
href={`https://npmgraph.js.org/?q=${library.npmPkg}`}
167-
style={tw`text-[12px] font-light`}>
168-
npmgraph
169-
</A>
170-
</li>
171-
<li>
172-
<A
173-
href={`https://snyk.io/advisor/npm-package/${library.npmPkg}`}
174-
style={tw`text-[12px] font-light`}>
175-
Snyk Advisor
176-
</A>
177-
</li>
178-
</ul>
179-
</CollapsibleSection>
180-
)}
134+
<CollapsibleSection title="Package analysis">
135+
<ul
136+
style={tw`pl-4.5 m-0 gap-1.5 text-[13px] text-palette-gray4 dark:text-palette-gray5`}>
137+
<li>
138+
<A
139+
href={`https://node-modules.dev/grid/depth#install=${library.npmPkg}`}
140+
style={tw`text-[12px] font-light`}>
141+
Node Modules Inspector
142+
</A>
143+
</li>
144+
<li>
145+
<A
146+
href={`https://bundlephobia.com/package/${library.npmPkg}`}
147+
style={tw`text-[12px] font-light`}>
148+
Bundlephobia
149+
</A>
150+
</li>
151+
<li>
152+
<A
153+
href={`https://pkg-size.dev/${library.npmPkg}`}
154+
style={tw`text-[12px] font-light`}>
155+
pkg-size.dev
156+
</A>
157+
</li>
158+
<li>
159+
<A
160+
href={`https://npmgraph.js.org/?q=${library.npmPkg}`}
161+
style={tw`text-[12px] font-light`}>
162+
npmgraph
163+
</A>
164+
</li>
165+
<li>
166+
<A
167+
href={`https://snyk.io/advisor/npm-package/${library.npmPkg}`}
168+
style={tw`text-[12px] font-light`}>
169+
Snyk Advisor
170+
</A>
171+
</li>
172+
</ul>
173+
</CollapsibleSection>
181174
<DependenciesSection
182175
title="Dependencies"
183176
data={dependencies}

0 commit comments

Comments
 (0)