A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: remove old upgrading code

-33
-1
src/Applications/UI.elm
··· 103 103 , isOnline = flags.isOnline 104 104 , isTauri = flags.isTauri 105 105 , isTouchDevice = False 106 - , isUpgrading = flags.upgrade 107 106 , lastFm = LastFm.initialModel 108 107 , navKey = key 109 108 , page = page
-2
src/Applications/UI/Types.elm
··· 46 46 , isInstallingServiceWorker : Bool -- ie. Installing SW for the first time 47 47 , isOnline : Bool 48 48 , isTauri : Bool 49 - , upgrade : Bool 50 49 , version : String 51 50 , viewport : Viewport 52 51 } ··· 70 69 , isOnline : Bool 71 70 , isTauri : Bool 72 71 , isTouchDevice : Bool 73 - , isUpgrading : Bool 74 72 , lastFm : LastFm.Model 75 73 , navKey : Nav.Key 76 74 , page : Page
-14
src/Applications/UI/User/State/Import.elm
··· 94 94 Return.singleton m 95 95 ) 96 96 |> andThen 97 - (\m -> 98 - if m.isUpgrading then 99 - """ 100 - Thank you for using Diffuse V1! 101 - If you want to import your old data, 102 - please go to the [import page](#/settings/data). 103 - """ 104 - |> Notifications.stickySuccess 105 - |> Common.showNotificationWithModel m 106 - 107 - else 108 - Return.singleton m 109 - ) 110 - |> andThen 111 97 Sources.addSourcesFromUrl 112 98 113 99
-16
src/Javascript/index.ts
··· 119 119 isInstallingServiceWorker: !!reg.installing, 120 120 isOnline: navigator.onLine, 121 121 isTauri: isNativeWrapper, 122 - upgrade: viableForUpgrade(), 123 122 version, 124 123 viewport: { 125 124 height: window.innerHeight, ··· 969 968 app.ports.indicateTouchDevice.send(null) 970 969 window.removeEventListener("touchstart", onFirstTouch, false) 971 970 }, false) 972 - 973 - 974 - 975 - // Upgrade 976 - // ------- 977 - 978 - function viableForUpgrade() { 979 - // Was the user using an old version of the app? 980 - // V1 981 - const viable_v1 = !!localStorage.getItem("additional-userdata") 982 - if (viable_v1) localStorage.removeItem("additional-userdata") 983 - 984 - // The end 985 - return viable_v1 986 - }