Skip to content

Commit

Permalink
Rebrand to Swatch (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel authored Jan 17, 2024
1 parent cf819b0 commit 4053615
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set dotenv-load

project_name := "rbxtheme"
project_name := "Swatch"
plugins_dir := if os_family() == "unix" {
"$HOME/Documents/Roblox/Plugins"
} else {
Expand Down
2 changes: 1 addition & 1 deletion plugin/default.project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rbxtheme",
"name": "Swatch",
"tree": {
"Packages": {
"$path": "Packages"
Expand Down
2 changes: 1 addition & 1 deletion plugin/dev.project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rbxtheme",
"name": "Swatch",
"tree": {
"$path": "default.project.json"
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/applyTheme.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local getThemeColors = require(Root.getThemeColors)
local types = require(Root.types)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/components/App.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local React = require(Root.Packages.React)
local types = require(Root.types)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/components/ExtensionsList.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local React = require(Root.Packages.React)
local types = require(Root.types)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/components/Home.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local React = require(Root.Packages.React)
local fetchVisualStudioExtensions = require(Root.fetchVisualStudioExtensions)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/components/LoadingSpinner.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local React = require(Root.Packages.React)
local Sift = require(Root.Packages.Sift)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/components/ThemeDetails.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local React = require(Root.Packages.React)
local Sift = require(Root.Packages.Sift)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/components/ThemeDetailsWrapper.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local React = require(Root.Packages.React)
local Sift = require(Root.Packages.Sift)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/components/useClock.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local RunService = game:GetService("RunService")

Expand Down
2 changes: 1 addition & 1 deletion plugin/src/constants.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
return {
PLUGIN_NAME = "VSCode Theme Importer",
PLUGIN_NAME = "Swatch",

SERVER_URL = "https://swatch.vocksel.com",

Expand Down
2 changes: 1 addition & 1 deletion plugin/src/fetchExtensionThemes.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local HttpService = game:GetService("HttpService")

Expand Down
2 changes: 1 addition & 1 deletion plugin/src/fetchVisualStudioExtensions.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local HttpService = game:GetService("HttpService")

Expand Down
4 changes: 2 additions & 2 deletions plugin/src/getScopeColors.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- upstream: https://github.com/vocksel/rbxtheme/blob/main/src/theme/getScopeColors.js
-- upstream: https://github.com/vocksel/Swatch/blob/main/src/theme/getScopeColors.js

local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local Sift = require(Root.Packages.Sift)

Expand Down
4 changes: 2 additions & 2 deletions plugin/src/getThemeColors.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- upstream: https://github.com/vocksel/rbxtheme/blob/main/src/theme/getThemeColors.js
-- upstream: https://github.com/vocksel/Swatch/blob/main/src/theme/getThemeColors.js

local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local Sift = require(Root.Packages.Sift)
local constants = require(Root.constants)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/init.storybook.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local React = require(Root.Packages.React)
local ReactRoblox = require(Root.Packages.ReactRoblox)
Expand Down
5 changes: 3 additions & 2 deletions plugin/src/request.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Root = script:FindFirstAncestor("rbxtheme")
local Root = script:FindFirstAncestor("Swatch")

local HttpService = game:GetService("HttpService")

Expand Down Expand Up @@ -29,7 +29,8 @@ local function request(payload)
local method = if payload.method then payload.method else "GET" :: HttpMethod

local function makeRequest()
print(`{method} {payload.url}`)
-- print(`{method} {payload.url}`)

return Promise.new(function(resolve, reject)
local res = HttpService:RequestAsync({
Url = payload.url,
Expand Down
4 changes: 2 additions & 2 deletions plugin/tests.project.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "rbxtheme",
"name": "Swatch",
"tree": {
"$className": "DataModel",
"ServerScriptService": {
"rbxtheme": {
"Swatch": {
"$path": "default.project.json"
}
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/wally.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "vocksel/rbxtheme"
name = "vocksel/swatch"
version = "0.1.0"
license = "MIT"
registry = "https://github.com/UpliftGames/wally-index"
Expand Down

0 comments on commit 4053615

Please sign in to comment.