|
| 1 | +diff a/src/Modules/BuildSiteTools.lua b/src/Modules/BuildSiteTools.lua (rejected hunks) |
| 2 | +@@ -7,25 +7,34 @@ |
| 3 | + buildSites = { } |
| 4 | + |
| 5 | + -- Import/Export websites list used in dropdowns |
| 6 | ++-- label: What a user sees in the export dropdown and when the import box recognizes the website |
| 7 | ++-- id: Protocol handler id used to load builds with the pob: URL scheme e.g. pob://Maxroll/siteSpecificBuildId |
| 8 | ++-- matchURL: A pattern to match URLs belonging to this website to show a valid url message in ImportTab |
| 9 | ++-- regexURL: Copied link from website to extract the build ID and pass to downloadURL to get the raw build XML |
| 10 | ++-- downloadURL: The URL to download the raw build code |
| 11 | ++-- codeOut: Gets prepended to returned code from postUrl. Needed to enable export in ImportTab |
| 12 | ++-- postUrl: The URL to upload a build code. Needed to enable export in ImportTab |
| 13 | ++-- postFields: The POST fields prepended to base64-encoded XML. Needed to enable export in ImportTab |
| 14 | ++-- linkURL: The URL pattern to link to the provided build code (Unused currently) |
| 15 | + buildSites.websiteList = { |
| 16 | + { |
| 17 | +- label = "Maxroll", id = "Maxroll", matchURL = "maxroll%.gg/poe/pob/.*", regexURL = "maxroll%.gg/poe/pob/(.+)%s*$", downloadURL = "maxroll%.gg/poe/api/pob/%1", |
| 18 | ++ label = "Maxroll", id = "Maxroll", matchURL = "^https://maxroll%.gg/poe/pob/.*", regexURL = "maxroll%.gg/poe/pob/(.+)%s*$", downloadURL = "maxroll%.gg/poe/api/pob/%1", |
| 19 | + codeOut = "https://maxroll.gg/poe/pob/", postUrl = "https://maxroll.gg/poe/api/pob", postFields = "pobCode=", linkURL = "maxroll%.gg/poe/pob/%1" |
| 20 | + }, |
| 21 | + { |
| 22 | +- label = "pobb.in", id = "POBBin", matchURL = "pobb%.in/.+", regexURL = "pobb%.in/(.+)%s*$", downloadURL = "pobb.in/pob/%1", |
| 23 | ++ label = "pobb.in", id = "POBBin", matchURL = "^https://pobb%.in/.+", regexURL = "pobb%.in/(.+)%s*$", downloadURL = "pobb.in/pob/%1", |
| 24 | + codeOut = "https://pobb.in/", postUrl = "https://pobb.in/pob/", postFields = "", linkURL = "pobb.in/%1" |
| 25 | + }, |
| 26 | + { |
| 27 | +- label = "PoeNinja", id = "PoeNinja", matchURL = "poe%.ninja/?p?o?e?1?/pob/%w+", regexURL = "poe%.ninja/?p?o?e?1?/pob/(%w+)%s*$", downloadURL = "poe.ninja/poe1/pob/raw/%1", |
| 28 | ++ label = "PoeNinja", id = "PoeNinja", matchURL = "^https://poe%.ninja/?p?o?e?1?/pob/%w+", regexURL = "poe%.ninja/?p?o?e?1?/pob/(%w+)%s*$", downloadURL = "poe.ninja/poe1/pob/raw/%1", |
| 29 | + codeOut = "", postUrl = "https://poe.ninja/poe1/pob/api/upload", postFields = "code=", linkURL="poe.ninja/poe1/pob/%1" |
| 30 | + }, |
| 31 | + { |
| 32 | +- label = "Pastebin.com", id = "pastebin", matchURL = "pastebin%.com/%w+", regexURL = "pastebin%.com/(%w+)%s*$", downloadURL = "pastebin.com/raw/%1", linkURL = "pastebin.com/%1" |
| 33 | ++ label = "Pastebin.com", id = "pastebin", matchURL = "^https://pastebin%.com/%w+", regexURL = "pastebin%.com/(%w+)%s*$", downloadURL = "pastebin.com/raw/%1", linkURL = "pastebin.com/%1" |
| 34 | + }, |
| 35 | +- { label = "PastebinP.com", id = "pastebinProxy", matchURL = "pastebinp%.com/%w+", regexURL = "pastebinp%.com/(%w+)%s*$", downloadURL = "pastebinp.com/raw/%1", linkURL = "pastebin.com/%1" }, |
| 36 | +- { label = "Rentry.co", id = "rentry", matchURL = "rentry%.co/%w+", regexURL = "rentry%.co/(%w+)%s*$", downloadURL = "rentry.co/paste/%1/raw", linkURL = "rentry.co/%1" }, |
| 37 | +- { label = "poedb.tw", id = "PoEDB", matchURL = "poedb%.tw/.+", regexURL = "poedb%.tw/pob/(.+)%s*$", downloadURL = "poedb.tw/pob/%1/raw", codeOut = "", postUrl = "https://poedb.tw/pob/api/gen", postFields = "", linkURL = "poedb.tw/pob/%1" }, |
| 38 | ++ { label = "PastebinP.com", id = "pastebinProxy", matchURL = "^https://pastebinp%.com/%w+", regexURL = "pastebinp%.com/(%w+)%s*$", downloadURL = "pastebinp.com/raw/%1", linkURL = "pastebin.com/%1" }, |
| 39 | ++ { label = "Rentry.co", id = "rentry", matchURL = "^https://rentry%.co/%w+", regexURL = "rentry%.co/(%w+)%s*$", downloadURL = "rentry.co/paste/%1/raw", linkURL = "rentry.co/%1" }, |
| 40 | ++ { label = "poedb.tw", id = "PoEDB", matchURL = "^https://poedb%.tw/.+", regexURL = "poedb%.tw/pob/(.+)%s*$", downloadURL = "poedb.tw/pob/%1/raw", codeOut = "", postUrl = "https://poedb.tw/pob/api/gen", postFields = "", linkURL = "poedb.tw/pob/%1" }, |
| 41 | + } |
| 42 | + |
| 43 | + --- Uploads a PoB build code to a website |
0 commit comments