💄 Support more of analytics engine such as baidu, google, busuanzi and so on, then add new web information widget. close #19

This commit is contained in:
凡梦星尘
2022-09-11 18:33:41 +08:00
parent c38a439171
commit 2a7fd9f8fb
21 changed files with 197 additions and 86 deletions

View File

@@ -3,14 +3,19 @@
{{ $fmt := "%s/%s@%s/%s" }}
{{ $npm := .res.name }}
{{ with .res.alias }}
{{ with .res.alias2 }}
{{ $npm = . }}
{{ end }}
{{ $file := .res.file }}
{{ if eq .vendor "cdnjs" }}
{{ $file = replaceRE `(dist|lib|source\/js)\/` "" .res.file }}
{{ $fmt = "%s/%s/%s/%s" }}
{{ end }}
{{- $file := .res.file }}
{{- if eq .vendor "cdnjs" }}
{{- with .res.alias }}
{{- $npm = . }}
{{- end }}
{{- $file = replaceRE `(dist|lib|source\/js)\/` "" .res.file }}
{{- $fmt = "%s/%s/%s/%s" }}
{{- end }}
{{ $pluginRes := printf $fmt .router $npm .res.version $file }}
{{ return $pluginRes }}