File tree Expand file tree Collapse file tree 7 files changed +17
-312
lines changed Expand file tree Collapse file tree 7 files changed +17
-312
lines changed Original file line number Diff line number Diff line change 1
1
import { createStore } from "vuex" ;
2
2
import UserBubbleLogin from "@/components/UserBubbleLogin.vue" ;
3
3
import NotificationDot from "@/components/NotificationDot.vue" ;
4
- import crypto from "crypto " ;
4
+ import { md5 } from "js-md5 " ;
5
5
6
6
describe ( "UserBubbleLogin" , ( ) => {
7
- const md5 = ( value ) => crypto . createHash ( "md5" ) . update ( value ) . digest ( "hex" ) ;
8
-
9
7
const creator = {
10
8
contact_email :
"[email protected] " ,
11
9
display_name : "Test User" ,
Original file line number Diff line number Diff line change 1
1
import UserBubble from "@/components/UserBubble.vue" ;
2
- import crypto from "crypto " ;
2
+ import { md5 } from "js-md5 " ;
3
3
4
4
describe ( "UserBubble" , ( ) => {
5
- const md5 = ( value ) => crypto . createHash ( "md5" ) . update ( value ) . digest ( "hex" ) ;
6
-
7
5
const creator = {
8
6
contact_email :
"[email protected] " ,
9
7
display_name : "Test User" ,
Original file line number Diff line number Diff line change 25
25
"@vueuse/components" : " ^10.7.2" ,
26
26
"bootstrap" : " ^4.5.3" ,
27
27
"buffer" : " ^6.0.3" ,
28
- "crypto-browserify" : " ^3.12.0" ,
29
28
"cytoscape" : " ^3.23.0" ,
30
29
"cytoscape-cola" : " ^2.5.1" ,
31
30
"cytoscape-elk" : " ^2.1.0" ,
35
34
"highlight.js" : " ^11.7.0" ,
36
35
"markdown-it" : " ^13.0.1" ,
37
36
"mermaid" : " ^10.1.0" ,
37
+ "js-md5" : " ^0.8.3" ,
38
38
"primeicons" : " ^7.0.0" ,
39
39
"primevue" : " ^4.0.0" ,
40
40
"process" : " ^0.11.10" ,
Original file line number Diff line number Diff line change 16
16
</template >
17
17
18
18
<script >
19
- import crypto from " crypto " ;
19
+ import { md5 } from " js-md5 " ;
20
20
import { GRAVATAR_STYLE } from " @/resources.js" ;
21
21
export default {
22
22
props: {
@@ -38,7 +38,7 @@ export default {
38
38
methods: {
39
39
md5 (value ) {
40
40
// Returns the MD5 hash of the given string.
41
- return crypto . createHash ( " md5" ). update (value). digest ( " hex " );
41
+ return md5 (value);
42
42
},
43
43
},
44
44
};
Original file line number Diff line number Diff line change 17
17
</template >
18
18
19
19
<script >
20
- import crypto from " crypto" ;
21
20
import { GRAVATAR_STYLE } from " @/resources.js" ;
22
21
23
22
import NotificationDot from " ./NotificationDot.vue" ;
24
23
25
24
import { getUsersList } from " @/server_fetch_utils.js" ;
25
+ import { md5 } from " js-md5" ;
26
26
27
27
export default {
28
28
components: {
@@ -57,7 +57,7 @@ export default {
57
57
methods: {
58
58
md5 (value ) {
59
59
// Returns the MD5 hash of the given string.
60
- return crypto . createHash ( " md5" ). update (value). digest ( " hex " );
60
+ return md5 (value);
61
61
},
62
62
},
63
63
};
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ module.exports = {
4
4
transpileDependencies : [ "mermaid" ] ,
5
5
configureWebpack : ( config ) => {
6
6
config . resolve . fallback = {
7
- crypto : require . resolve ( "crypto-browserify" ) ,
8
7
stream : require . resolve ( "stream-browserify" ) ,
9
8
process : require . resolve ( "process/browser" ) ,
10
9
buffer : require . resolve ( "buffer/" ) ,
You can’t perform that action at this time.
0 commit comments