Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
angular
web-table
Commits
48c05669
Commit
48c05669
authored
Apr 19, 2019
by
Zéfling
🎨
Browse files
best update list
parent
a176b086
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitmodules
View file @
48c05669
[submodule "browser-compat-data"]
[submodule "
src/assets/
browser-compat-data"]
path = src/assets/browser-compat-data
url = https://github.com/mdn/browser-compat-data.git
src/app/app.service.ts
View file @
48c05669
...
...
@@ -8,7 +8,7 @@ import { BcdData, BcdDataType } from './browser-compat-data';
export
type
DataValue
=
(
string
|
{
[
key
:
string
]:
DataValue
})[];
export
interface
ChangePage
{
path
:
string
[];
fileName
:
string
;
data
:
BcdDataType
;
}
const
pattern
=
/
\.
\/([^\/]
+
)\/(
.*
)
/
;
const
pattern
=
/
^
\/([^\/]
+
)\/(
.*
)
$
/
;
@
Injectable
({
providedIn
:
'
root
'
,
...
...
@@ -48,7 +48,7 @@ export class AppService {
parselist
(
data
:
string
)
{
const
list
=
data
.
split
(
'
\n
'
);
list
.
sort
();
//
list.sort();
// browser infos
for
(
const
line
of
list
)
{
...
...
@@ -60,11 +60,6 @@ export class AppService {
case
'
browsers
'
:
this
.
browsers
.
push
(
path
);
break
;
case
'
.vscode
'
:
case
'
schemas
'
:
case
'
package.json
'
:
case
'
test
'
:
break
;
default
:
if
(
!
this
.
data
[
group
])
{
this
.
data
[
group
]
=
[];
...
...
src/assets/browser-compat-data.txt
View file @
48c05669
This diff is collapsed.
Click to expand it.
src/assets/update.sh
View file @
48c05669
...
...
@@ -2,5 +2,4 @@
#!/bin/bash
cd
browser-compat-data
# find -L **/**.json > '../browser-compat-data.txt'
find
.
-type
f
\(
-iname
"*.json"
\)
>
'../browser-compat-data.txt'
\ No newline at end of file
find
.
-type
f
\(
-iname
"*.json"
\)
-print0
|
sort
-z
| xargs
-r0
sha256sum
|
grep
-oP
'(?!.*browser-compat-data\/)(?!.*(\.vscode|package|test).*).*'
>
'../browser-compat-data.txt'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment