Skip to content

Commit 2d348e2

Browse files
Lexpearthaatinuxlvzhenbo
authored
feat: add suport for harlem (#90)
* update to current main branch (#1) * fix: add `@nuxtjs/color-mode` recognition case (#82) * fix: use $img not $router for nuxt/image Resolves #83 * chore(release): 0.9.15 * feat: support nuxt 3 static rendering (#84) * feat: detect IP and localhost sites and remove mandatory https access (#87) * feat: add vitepress detection * chore: update vitepress logo * Update vitepress.svg * feat: detect IP and localhost sites and remove mandatory https access Co-authored-by: Sébastien Chopin <[email protected]> * chore(release): 0.9.16 Co-authored-by: Sébastien Chopin <[email protected]> Co-authored-by: 吕振波 <[email protected]> * feat: add harlem detector * docs: update README * fix: use optional chaining * Update README.md Co-authored-by: Sébastien Chopin <[email protected]> Co-authored-by: 吕振波 <[email protected]> Co-authored-by: Sébastien Chopin <[email protected]>
1 parent 723058c commit 2d348e2

File tree

3 files changed

+100
-53
lines changed

3 files changed

+100
-53
lines changed

README.md

Lines changed: 30 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CLI to analyze a website and detect Vue and its ecosystem ✨
44

55
This module is used by [vuetelescope.com](https://vuetelescope.com) to detect Vue and its ecosystem on a website.
66

7-
You can help the community discover new Vue websites by using the [browser extension](https://github.com/nuxt-company/vue-telescope-extensions) 💚
7+
You can help the community discover new Vue websites by using the [browser extension](https://github.com/nuxtlabs/vue-telescope-extensions) 💚
88

99
## Installation
1010

@@ -18,17 +18,16 @@ npm install -g vue-telescope-analyzer # Or yarn global add vue-telescope-analyze
1818
vta [url]
1919

2020
# Example
21-
vta https://fr.nuxtjs.org
21+
vta https://nuxt.com
2222
```
2323

2424
[![render1585566509798](https://user-images.githubusercontent.com/904724/77906279-fb455d80-7287-11ea-86f2-d7eca773ba56.gif)](https://terminalizer.com/view/a30a95523602)
2525

26-
2726
It supports multiple [frameworks](#frameworks), [UI libraries](#ui-libraries) and [Vue plugins](#vue-plugins).
2827

2928
## Frameworks
3029

31-
- [Nuxt](https://nuxtjs.org)
30+
- [Nuxt](https://nuxt.com)
3231
- [Quasar](https://quasar.dev)
3332
- [Gridsome](https://gridsome.org)
3433
- [VuePress](https://vuepress.vuejs.org)
@@ -68,23 +67,23 @@ To support a new UI library, please look at [detectors/uis.json](detectors/uis.j
6867
- [vee-validate](https://vee-validate.logaretm.com)
6968
- [Vue Composition API](https://github.com/vuejs/composition-api)
7069
- [Vue Tour](https://github.com/pulsardev/vue-tour)
71-
- [Pinia](https://github.com/posva/pinia)
70+
- [Pinia](https://pinia.vuejs.org/)
71+
- [Harlem](https://harlemjs.com)
7272
- [FormKit](https://formkit.com)
7373

7474
To support a new Vue plugin, please look at [detectors/plugins.json](detectors/plugins.json).
7575

7676
## Nuxt Info
7777

78-
When [Nuxt](https://nuxtjs.org) is detected as a framework, it will also detect:
78+
When [Nuxt](https://nuxt.com) is detected as a framework, it will also detect:
7979

80-
- If the website is *server-rendered* (`mode: 'universal'`)
81-
- If the website is *static* (`nuxt generate`)
80+
- If the website is _server-rendered_ (`mode: 'universal'`)
81+
- If the website is _static_ (`nuxt generate`)
8282

8383
See [detectors/nuxt.meta.json](detectors/nuxt.meta.json) for the detection.
8484

8585
It will also detect the Nuxt modules used, refer to [detectors/nuxt.modules.json](detectors/nuxt.modules.json) to support new Nuxt modules.
8686

87-
8887
## NPM Module
8988

9089
You can use `vue-telescope-analyzer` locally on your project:
@@ -98,91 +97,69 @@ Then you can use the module in your project:
9897
```js
9998
const analyze = require('vue-telescope-analyzer')
10099

101-
analyze('https://nuxtjs.org')
100+
analyze('https://nuxt.com')
102101
.then(result => console.log(result))
103102
.catch(error => console.error(error))
104103
```
105104

106105
Result:
107106

108107
```js
109-
{
110-
url: 'https://nuxtjs.org/',
111-
hostname: 'nuxtjs.org',
112-
domain: 'nuxtjs.org',
113-
// website metadata
108+
{ 17:48:21
109+
url: 'https://nuxt.com/',
110+
hostname: 'nuxt.com',
111+
domain: 'nuxt.com',
114112
meta: {
115113
language: 'en',
116-
title: 'Nuxt.js - The Vue.js Framework',
117-
description: 'Nuxt.js presets all the configuration needed to make...',
118-
siteName: 'NuxtJS',
114+
title: 'Nuxt: The Intuitive Web Framework',
115+
description: 'Build your next Vue.js application with confidence using Nuxt. An open source framework under MIT license that makes web development simple and powerful.',
116+
siteName: '',
119117
isAdultContent: false
120118
},
121-
vueVersion: '2.6.11',
119+
vueVersion: '3.2.45',
122120
hasSSR: true,
123-
isStatic: true,
124-
// Vue Framework
121+
isStatic: false,
125122
framework: {
126123
slug: 'nuxtjs',
127124
name: 'NuxtJS',
128-
imgPath: '/framework/nuxt.svg', // prefix with https://icons.vuetelescope.com
125+
imgPath: '/framework/nuxt.svg',
126+
url: 'https://nuxt.com'
129127
},
130-
// Vue plugins
131128
plugins: [
132129
{
133130
slug: 'vue-router',
134131
name: 'vue-router',
135132
imgPath: null,
136133
url: 'https://router.vuejs.org/'
137-
},
138-
{
139-
slug: 'vue-meta',
140-
name: 'vue-meta',
141-
imgPath: null,
142-
url: 'https://vue-meta.nuxtjs.org'
143-
},
144-
{
145-
slug: 'vuex',
146-
name: 'vuex',
147-
imgPath: null,
148-
url: 'https://vuex.vuejs.org'
149134
}
150135
],
151-
// UI Librairy
152136
ui: {
153137
slug: 'tailwind-css',
154138
name: 'Tailwind CSS',
155139
imgPath: '/ui/tailwind.svg',
156140
url: 'https://tailwindcss.com/'
157141
},
158-
// Framework modules
159142
frameworkModules: [
160143
{
161-
slug: 'nuxt-http',
162-
name: '@nuxt/http',
163-
imgPath: null,
164-
url: 'https://http.nuxtjs.org'
165-
},
166-
{
167-
slug: 'nuxtjs-pwa',
168-
name: '@nuxtjs/pwa',
144+
slug: 'nuxt-content',
145+
name: '@nuxt/content',
169146
imgPath: null,
170-
url: 'https://pwa.nuxtjs.org/'
147+
url: 'https://content.nuxtjs.org'
171148
},
172149
{
173-
slug: 'nuxtjs-google-analytics',
174-
name: '@nuxtjs/google-analytics',
150+
slug: 'nuxtjs-algolia',
151+
name: '@nuxtjs/algolia',
175152
imgPath: null,
176-
url: 'https://github.com/nuxt-community/analytics-module'
153+
url: 'https://algolia.nuxtjs.org'
177154
},
178155
{
179-
slug: 'nuxtjs-color-mode',
180-
name: '@nuxtjs/color-mode',
156+
slug: 'nuxt-image',
157+
name: '@nuxt/image',
181158
imgPath: null,
182-
url: 'https://github.com/nuxt-community/color-mode-module'
159+
url: 'https://image.nuxtjs.org'
183160
}
184161
],
185-
screenshot: '/var/folders/....../8f1a071384d0b4.jpg'
162+
screenshot: '/var/folders/.../00b97a2040a9aeffc8d5c9d855d2643a.jpg'
186163
}
187164
```
188165

detectors/plugins.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@
162162
]
163163
}
164164
},
165+
"harlem": {
166+
"metas": {
167+
"slug": "harlem",
168+
"name": "Harlem",
169+
"imgPath": "/plugins/harlem.svg",
170+
"url": "https://harlemjs.com"
171+
},
172+
"detectors": {
173+
"js": "Boolean(window.$harlem?.createInstance)"
174+
}
175+
},
165176
"@formkit/vue": {
166177
"metas": {
167178
"slug": "formkit",

icons/plugins/harlem.svg

Lines changed: 59 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)