mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-14 11:23:50 +00:00
no message
This commit is contained in:
parent
b7c2ddd59d
commit
35fd8e62ac
1
public/images/device/phone.svg
Normal file
1
public/images/device/phone.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M15.75 2A2.25 2.25 0 0 1 18 4.25v15.5A2.25 2.25 0 0 1 15.75 22h-7.5A2.25 2.25 0 0 1 6 19.75V4.25A2.25 2.25 0 0 1 8.25 2h7.5zm-2.5 16h-2.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z" fill="currentColor"></path></g></svg>
|
||||
|
After Width: | Height: | Size: 346 B |
1
public/images/device/tablet.svg
Normal file
1
public/images/device/tablet.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M19.749 4a2.25 2.25 0 0 1 2.25 2.25v11.502a2.25 2.25 0 0 1-2.25 2.25H4.25A2.25 2.25 0 0 1 2 17.752V6.25A2.25 2.25 0 0 1 4.25 4h15.499zM13.75 15.5h-3.5a.75.75 0 0 0 0 1.5h3.5a.75.75 0 1 0 0-1.5z" fill="currentColor"></path></g></svg>
|
||||
|
After Width: | Height: | Size: 359 B |
@ -67,11 +67,20 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
getIcon({app_type}) {
|
||||
getIcon({app_type, app_name}) {
|
||||
if (/ios/i.test(app_type)) {
|
||||
if (/ipad/i.test(app_name)) {
|
||||
return 'tablet';
|
||||
}
|
||||
if (/iphone/i.test(app_name)) {
|
||||
return 'phone';
|
||||
}
|
||||
return 'apple';
|
||||
}
|
||||
else if (/android/i.test(app_type)) {
|
||||
if (/(tablet|phablet)/i.test(app_name)) {
|
||||
return 'tablet';
|
||||
}
|
||||
return 'android';
|
||||
}
|
||||
else if (/mac/i.test(app_type)) {
|
||||
|
||||
@ -386,6 +386,14 @@
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
|
||||
&.phone {
|
||||
background-image: url("../images/device/phone.svg");
|
||||
}
|
||||
|
||||
&.tablet {
|
||||
background-image: url("../images/device/tablet.svg");
|
||||
}
|
||||
|
||||
&.android {
|
||||
background-image: url("../images/device/android.svg");
|
||||
}
|
||||
|
||||
1
resources/assets/statics/public/images/device/phone.svg
Normal file
1
resources/assets/statics/public/images/device/phone.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M15.75 2A2.25 2.25 0 0 1 18 4.25v15.5A2.25 2.25 0 0 1 15.75 22h-7.5A2.25 2.25 0 0 1 6 19.75V4.25A2.25 2.25 0 0 1 8.25 2h7.5zm-2.5 16h-2.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z" fill="currentColor"></path></g></svg>
|
||||
|
After Width: | Height: | Size: 346 B |
1
resources/assets/statics/public/images/device/tablet.svg
Normal file
1
resources/assets/statics/public/images/device/tablet.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M19.749 4a2.25 2.25 0 0 1 2.25 2.25v11.502a2.25 2.25 0 0 1-2.25 2.25H4.25A2.25 2.25 0 0 1 2 17.752V6.25A2.25 2.25 0 0 1 4.25 4h15.499zM13.75 15.5h-3.5a.75.75 0 0 0 0 1.5h3.5a.75.75 0 1 0 0-1.5z" fill="currentColor"></path></g></svg>
|
||||
|
After Width: | Height: | Size: 359 B |
Loading…
x
Reference in New Issue
Block a user