From 1a3a81508d7d423bcaab8bf1bc177af1bc2a8030 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 5 Mar 2018 23:37:16 -0500 Subject: [PATCH] delete views that are taken care of --- views/explore/active.js | 3 --- views/explore/featured.js | 3 --- views/explore/mapper.js | 6 ------ views/explore/mine.js | 3 --- views/explore/shared.js | 3 --- views/explore/starred.js | 3 --- views/maps/show.js | 13 ------------- views/topics/show.js | 8 -------- 8 files changed, 42 deletions(-) delete mode 100644 views/explore/active.js delete mode 100644 views/explore/featured.js delete mode 100644 views/explore/mapper.js delete mode 100644 views/explore/mine.js delete mode 100644 views/explore/shared.js delete mode 100644 views/explore/starred.js delete mode 100644 views/maps/show.js delete mode 100644 views/topics/show.js diff --git a/views/explore/active.js b/views/explore/active.js deleted file mode 100644 index 45c10cb6..00000000 --- a/views/explore/active.js +++ /dev/null @@ -1,3 +0,0 @@ -Metamaps.currentSection = "explore"; -Metamaps.currentPage = "active"; -Metamaps.ServerData.Active = { @maps.to_json.html_safe }; diff --git a/views/explore/featured.js b/views/explore/featured.js deleted file mode 100644 index 4289d9a8..00000000 --- a/views/explore/featured.js +++ /dev/null @@ -1,3 +0,0 @@ -Metamaps.currentSection = "explore"; -Metamaps.currentPage = "featured"; -Metamaps.ServerData.Featured = { @maps.to_json.html_safe }; diff --git a/views/explore/mapper.js b/views/explore/mapper.js deleted file mode 100644 index c9c2a2ae..00000000 --- a/views/explore/mapper.js +++ /dev/null @@ -1,6 +0,0 @@ -Metamaps.currentSection = "explore"; -Metamaps.currentPage = "mapper"; -Metamaps.ServerData.Mapper = { - models: { @maps.to_json.html_safe }, - mapperId: { params[:id] } -}; diff --git a/views/explore/mine.js b/views/explore/mine.js deleted file mode 100644 index cd7e59dc..00000000 --- a/views/explore/mine.js +++ /dev/null @@ -1,3 +0,0 @@ -Metamaps.currentPage = "mine"; -Metamaps.currentSection = "explore"; -Metamaps.ServerData.Mine = { @maps.to_json.html_safe }; diff --git a/views/explore/shared.js b/views/explore/shared.js deleted file mode 100644 index 4b49b871..00000000 --- a/views/explore/shared.js +++ /dev/null @@ -1,3 +0,0 @@ -Metamaps.currentPage = "shared"; -Metamaps.currentSection = "explore"; -Metamaps.ServerData.Shared = { @maps.to_json.html_safe }; diff --git a/views/explore/starred.js b/views/explore/starred.js deleted file mode 100644 index 8bab8e56..00000000 --- a/views/explore/starred.js +++ /dev/null @@ -1,3 +0,0 @@ -Metamaps.currentPage = "starred"; -Metamaps.currentSection = "explore"; -Metamaps.ServerData.Starred = { @maps.to_json.html_safe }; diff --git a/views/maps/show.js b/views/maps/show.js deleted file mode 100644 index da27599a..00000000 --- a/views/maps/show.js +++ /dev/null @@ -1,13 +0,0 @@ -Metamaps.currentSection = "map"; -Metamaps.currentPage = { @map.id.to_s }; -Metamaps.ServerData = Metamaps.ServerData || {} -Metamaps.ServerData.ActiveMap = { @map.to_json.html_safe }; -Metamaps.ServerData.Mappers = { @allmappers.to_json.html_safe }; -Metamaps.ServerData.Collaborators = { @allcollaborators.to_json.html_safe }; -Metamaps.ServerData.Topics = { @alltopics.to_json(user: current_user).html_safe }; -Metamaps.ServerData.Synapses = { @allsynapses.to_json.html_safe }; -Metamaps.ServerData.Mappings = { @allmappings.to_json.html_safe }; -Metamaps.ServerData.Messages = { @allmessages.to_json.html_safe }; -Metamaps.ServerData.Stars = { @allstars.to_json.html_safe }; -Metamaps.ServerData.requests = { @allrequests.to_json.html_safe }; -Metamaps.ServerData.VisualizeType = "ForceDirected"; diff --git a/views/topics/show.js b/views/topics/show.js deleted file mode 100644 index e2dc0c3f..00000000 --- a/views/topics/show.js +++ /dev/null @@ -1,8 +0,0 @@ -Metamaps.currentSection = "topic" -Metamaps.currentPage = { @topic.id.to_s } -Metamaps.ServerData = Metamaps.ServerData || {} -Metamaps.ServerData.ActiveTopic = { @topic.to_json(user: current_user).html_safe } -Metamaps.ServerData.Creators = { @allcreators.to_json.html_safe } -Metamaps.ServerData.Topics = { @alltopics.to_json(user: current_user).html_safe } -Metamaps.ServerData.Synapses = { @allsynapses.to_json.html_safe } -Metamaps.ServerData.VisualizeType = "RGraph"