Change domain for ha-client website
This commit is contained in:
		| @@ -69,7 +69,7 @@ class HomeAssistant { | ||||
|         _fetchCompleter.complete(); | ||||
|         MobileAppIntegrationManager.checkAppRegistration(); | ||||
|       } else { | ||||
|         _fetchCompleter.completeError(HAError("Mobile app component not found", actions: [HAErrorAction.tryAgain(), HAErrorAction(type: HAErrorActionType.URL ,title: "Help",url: "http://ha-client.homemade.systems/docs#mobile-app-integration")])); | ||||
|         _fetchCompleter.completeError(HAError("Mobile app component not found", actions: [HAErrorAction.tryAgain(), HAErrorAction(type: HAErrorActionType.URL ,title: "Help",url: "http://ha-client.estevez.dev/docs#mobile-app-integration")])); | ||||
|       } | ||||
|     }).catchError((e) { | ||||
|       _fetchCompleter.completeError(e); | ||||
|   | ||||
| @@ -217,7 +217,7 @@ class HAClientApp extends StatelessWidget { | ||||
|           appBar: new AppBar( | ||||
|             leading: IconButton( | ||||
|                 icon: Icon(Icons.help), | ||||
|                 onPressed: () => Launcher.launchURLInCustomTab(context: context, url: "http://ha-client.homemade.systems/docs#authentication") | ||||
|                 onPressed: () => Launcher.launchURLInCustomTab(context: context, url: "http://ha-client.estevez.dev/docs#authentication") | ||||
|             ), | ||||
|             title: new Text("Login with HA"), | ||||
|             actions: <Widget>[ | ||||
|   | ||||
| @@ -14,7 +14,7 @@ class AuthManager { | ||||
|     Completer completer = Completer(); | ||||
|     final flutterWebviewPlugin = new FlutterWebviewPlugin(); | ||||
|     flutterWebviewPlugin.onUrlChanged.listen((String url) { | ||||
|       if (url.startsWith("http://ha-client.homemade.systems/service/auth_callback.html")) { | ||||
|       if (url.startsWith("http://ha-client.estevez.dev/service/auth_callback.html")) { | ||||
|         Logger.d("url=$url"); | ||||
|         String authCode = url.split("=")[1]; | ||||
|         Logger.d("authCode=$authCode"); | ||||
| @@ -23,7 +23,7 @@ class AuthManager { | ||||
|           endPoint: "/auth/token", | ||||
|           contentType: "application/x-www-form-urlencoded", | ||||
|           includeAuthHeader: false, | ||||
|           data: "grant_type=authorization_code&code=$authCode&client_id=${Uri.encodeComponent('http://ha-client.homemade.systems')}" | ||||
|           data: "grant_type=authorization_code&code=$authCode&client_id=${Uri.encodeComponent('http://ha-client.estevez.dev')}" | ||||
|         ).then((response) { | ||||
|           Logger.d("Got temp token"); | ||||
|           String tempToken = json.decode(response)['access_token']; | ||||
|   | ||||
| @@ -59,9 +59,9 @@ class ConnectionManager { | ||||
|           _token = await storage.read(key: "hacl_llt"); | ||||
|           Logger.e("Long-lived token read successful"); | ||||
|           oauthUrl = "$httpWebHost/auth/authorize?client_id=${Uri.encodeComponent( | ||||
|               'http://ha-client.homemade.systems')}&redirect_uri=${Uri | ||||
|               'http://ha-client.estevez.dev')}&redirect_uri=${Uri | ||||
|               .encodeComponent( | ||||
|               'http://ha-client.homemade.systems/service/auth_callback.html')}"; | ||||
|               'http://ha-client.estevez.dev/service/auth_callback.html')}"; | ||||
|           settingsLoaded = true; | ||||
|         } catch (e) { | ||||
|           completer.completeError(HAError("Error reading login details", actions: [HAErrorAction.tryAgain(type: HAErrorActionType.FULL_RELOAD), HAErrorAction.loginAgain()])); | ||||
|   | ||||
| @@ -118,7 +118,7 @@ class _IntegrationSettingsPageState extends State<IntegrationSettingsPage> { | ||||
|                 Text("Location tracking", style: TextStyle(fontSize: Sizes.largeFontSize-2)), | ||||
|                 Container(height: Sizes.rowPadding,), | ||||
|                 InkWell( | ||||
|                   onTap: () => Launcher.launchURLInCustomTab(context: context, url: "http://ha-client.homemade.systems/docs#location-tracking"), | ||||
|                   onTap: () => Launcher.launchURLInCustomTab(context: context, url: "http://ha-client.estevez.dev/docs#location-tracking"), | ||||
|                   child: Text( | ||||
|                     "Please read documentation!", | ||||
|                     style: TextStyle( | ||||
|   | ||||
| @@ -440,7 +440,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker | ||||
|         title: Text("Help"), | ||||
|         onTap: () { | ||||
|           Navigator.of(context).pop(); | ||||
|           Launcher.launchURL("http://ha-client.homemade.systems/docs"); | ||||
|           Launcher.launchURL("http://ha-client.estevez.dev/docs"); | ||||
|         }, | ||||
|       ), | ||||
|       new ListTile( | ||||
| @@ -456,10 +456,10 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker | ||||
|             GestureDetector( | ||||
|               onTap: () { | ||||
|                 Navigator.of(context).pop(); | ||||
|                 Launcher.launchURL("http://ha-client.homemade.systems/"); | ||||
|                 Launcher.launchURL("http://ha-client.estevez.dev/"); | ||||
|               }, | ||||
|               child: Text( | ||||
|                 "ha-client.homemade.systems", | ||||
|                 "ha-client.estevez.dev", | ||||
|                 style: TextStyle( | ||||
|                     color: Colors.blue, | ||||
|                     decoration: TextDecoration.underline | ||||
| @@ -472,7 +472,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker | ||||
|             GestureDetector( | ||||
|               onTap: () { | ||||
|                 Navigator.of(context).pop(); | ||||
|                 Launcher.launchURLInCustomTab(context: context, url: "http://ha-client.homemade.systems/terms_and_conditions"); | ||||
|                 Launcher.launchURLInCustomTab(context: context, url: "http://ha-client.estevez.dev/terms_and_conditions"); | ||||
|               }, | ||||
|               child: Text( | ||||
|                 "Terms and Conditions", | ||||
| @@ -488,7 +488,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker | ||||
|             GestureDetector( | ||||
|               onTap: () { | ||||
|                 Navigator.of(context).pop(); | ||||
|                 Launcher.launchURLInCustomTab(context: context, url: "http://ha-client.homemade.systems/privacy_policy"); | ||||
|                 Launcher.launchURLInCustomTab(context: context, url: "http://ha-client.estevez.dev/privacy_policy"); | ||||
|               }, | ||||
|               child: Text( | ||||
|                 "Privacy Policy", | ||||
|   | ||||
| @@ -24,7 +24,7 @@ class _WhatsNewPageState extends State<WhatsNewPage> { | ||||
|       error = ""; | ||||
|     }); | ||||
|     http.Response response; | ||||
|     response = await http.get("http://ha-client.homemade.systems/service/whats_new_0.7.0.md"); | ||||
|     response = await http.get("http://ha-client.estevez.dev/service/whats_new_0.7.0.md"); | ||||
|     if (response.statusCode == 200) { | ||||
|       setState(() { | ||||
|         data = response.body; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user