Skip to content

Commit

Permalink
update urls for 21x
Browse files Browse the repository at this point in the history
  • Loading branch information
derek nowicki committed Mar 11, 2024
1 parent 8d05221 commit cfd7362
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion qml/pages/Exhibitors/Exhibitors.qml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WebView {

width: window.width
height: window.height
url: "https://www.socallinuxexpo.org/scale/20x/exhibitors"
url: "https://www.socallinuxexpo.org/scale/21x/exhibitors"

// Used to move the WebView when the drawer is opened due to https://doc.qt.io/qt-5/qtwebview-index.html#Limitations
x: window.width * window.drawerPosition
Expand Down
2 changes: 1 addition & 1 deletion qml/pages/Home/AnnouncementsModel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "qrc:/js/database.js" as DB

XmlListModel{
id: announcementsModel
source:"https://www.socallinuxexpo.org/announcementappdata/20x"
source:"https://www.socallinuxexpo.org/announcementappdata/21x"
query: "/nodes/node"

XmlRole { id: titleRole; name: "title"; query: "Title/string()" }
Expand Down
2 changes: 1 addition & 1 deletion qml/pages/Schedule/SignModel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Item {

JSONListModel {
id: jsonModel
source: "https://scale-app-backend.onrender.com/events/" + day
source: "https://scale-app-backend-113205d83b1f.herokuapp.com/events/" + day
}

function setDay(currentDay) {
Expand Down
2 changes: 1 addition & 1 deletion qml/pages/Speakers/SpeakersModel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import QtQuick 2.0
import "../components/JSONListModel"

JSONListModel {
source: "https://scale-app-backend.onrender.com/speakers"
source: "https://scale-app-backend-113205d83b1f.herokuapp.com/speakers"
}
2 changes: 1 addition & 1 deletion qml/pages/SpecialEvents/SpecialEvents.qml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WebView {

width: window.width
height: window.height
url: "https://www.socallinuxexpo.org/scale/20x/events"
url: "https://www.socallinuxexpo.org/scale/21x/events"

// Used to move the WebView when the drawer is opened due to https://doc.qt.io/qt-5/qtwebview-index.html#Limitations
x: window.width * window.drawerPosition
Expand Down
4 changes: 2 additions & 2 deletions qml/pages/components/JSONListModel/JSONListModel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Item {
console.log(e.name + " - "+ e.message);
}
}else{
json = JSON.parse(DB.get_json(source.replace("https://scale-app-backend.onrender.com/", '').replace("/", '')));
json = JSON.parse(DB.get_json(source.replace("https://scale-app-backend-113205d83b1f.herokuapp.com/", '').replace("/", '')));
}
};

Expand All @@ -44,6 +44,6 @@ Item {
}

//sync json data to the local database
DB.add_json(JSON.stringify(json), source.replace("https://scale-app-backend.onrender.com/", '').replace("/", ''));
DB.add_json(JSON.stringify(json), source.replace("https://scale-app-backend-113205d83b1f.herokuapp.com/", '').replace("/", ''));
}
}

0 comments on commit cfd7362

Please sign in to comment.