From 5baabf84dfdbdc634a5111a944cf5fca863067df Mon Sep 17 00:00:00 2001 From: mmckenna Date: Mon, 11 Mar 2019 12:46:34 -0400 Subject: [PATCH 1/2] move images into public dir --- public/assets/Ark@1x.svg | 3 +++ public/assets/CSGO2.svg | 3 +++ public/assets/Drupal.svg | 14 ++++++++++++++ public/assets/GitLab.svg | 17 +++++++++++++++++ public/assets/LAMP.svg | 11 +++++++++++ public/assets/MERN.svg | 24 ++++++++++++++++++++++++ public/assets/Minecraft.svg | 10 ++++++++++ public/assets/OpenVPN.svg | 12 ++++++++++++ public/assets/Rust.svg | 3 +++ public/assets/TF2.svg | 11 +++++++++++ public/assets/Terraria.svg | 3 +++ public/assets/Wireguard.svg | 31 +++++++++++++++++++++++++++++++ public/assets/WooCommerce.svg | 12 ++++++++++++ public/assets/WordPress.svg | 11 +++++++++++ src/services/cloud_apps/index.ts | 26 ++++++++++++++++++++++++++ 15 files changed, 191 insertions(+) create mode 100644 public/assets/Ark@1x.svg create mode 100644 public/assets/CSGO2.svg create mode 100644 public/assets/Drupal.svg create mode 100644 public/assets/GitLab.svg create mode 100644 public/assets/LAMP.svg create mode 100644 public/assets/MERN.svg create mode 100644 public/assets/Minecraft.svg create mode 100644 public/assets/OpenVPN.svg create mode 100644 public/assets/Rust.svg create mode 100644 public/assets/TF2.svg create mode 100644 public/assets/Terraria.svg create mode 100644 public/assets/Wireguard.svg create mode 100644 public/assets/WooCommerce.svg create mode 100644 public/assets/WordPress.svg create mode 100644 src/services/cloud_apps/index.ts diff --git a/public/assets/Ark@1x.svg b/public/assets/Ark@1x.svg new file mode 100644 index 00000000000..95e26baf552 --- /dev/null +++ b/public/assets/Ark@1x.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/CSGO2.svg b/public/assets/CSGO2.svg new file mode 100644 index 00000000000..7157526a6f0 --- /dev/null +++ b/public/assets/CSGO2.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/Drupal.svg b/public/assets/Drupal.svg new file mode 100644 index 00000000000..f9f9874936c --- /dev/null +++ b/public/assets/Drupal.svg @@ -0,0 +1,14 @@ + + + + Drupal + Created with Sketch. + + + + + + + + + \ No newline at end of file diff --git a/public/assets/GitLab.svg b/public/assets/GitLab.svg new file mode 100644 index 00000000000..f1b682aac33 --- /dev/null +++ b/public/assets/GitLab.svg @@ -0,0 +1,17 @@ + + + + GitLab + Created with Sketch. + + + + \ No newline at end of file diff --git a/public/assets/LAMP.svg b/public/assets/LAMP.svg new file mode 100644 index 00000000000..270a5ed1a84 --- /dev/null +++ b/public/assets/LAMP.svg @@ -0,0 +1,11 @@ + + + + LAMP + Created with Sketch. + + + + + + \ No newline at end of file diff --git a/public/assets/MERN.svg b/public/assets/MERN.svg new file mode 100644 index 00000000000..f482fcd2cfc --- /dev/null +++ b/public/assets/MERN.svg @@ -0,0 +1,24 @@ + + + + MERN + Created with Sketch. + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/assets/Minecraft.svg b/public/assets/Minecraft.svg new file mode 100644 index 00000000000..a7a88b46fa2 --- /dev/null +++ b/public/assets/Minecraft.svg @@ -0,0 +1,10 @@ + + + + Minecraft + Created with Sketch. + + + + + \ No newline at end of file diff --git a/public/assets/OpenVPN.svg b/public/assets/OpenVPN.svg new file mode 100644 index 00000000000..9fe24377c6c --- /dev/null +++ b/public/assets/OpenVPN.svg @@ -0,0 +1,12 @@ + + + + OpenVPN + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/public/assets/Rust.svg b/public/assets/Rust.svg new file mode 100644 index 00000000000..66707193cb3 --- /dev/null +++ b/public/assets/Rust.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/TF2.svg b/public/assets/TF2.svg new file mode 100644 index 00000000000..35bd7b4c128 --- /dev/null +++ b/public/assets/TF2.svg @@ -0,0 +1,11 @@ + + + + TF2 + Created with Sketch. + + + + + + \ No newline at end of file diff --git a/public/assets/Terraria.svg b/public/assets/Terraria.svg new file mode 100644 index 00000000000..71f0f922c8c --- /dev/null +++ b/public/assets/Terraria.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/Wireguard.svg b/public/assets/Wireguard.svg new file mode 100644 index 00000000000..928f43c9ccf --- /dev/null +++ b/public/assets/Wireguard.svg @@ -0,0 +1,31 @@ + + + + Wireguard + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/assets/WooCommerce.svg b/public/assets/WooCommerce.svg new file mode 100644 index 00000000000..0f12d691396 --- /dev/null +++ b/public/assets/WooCommerce.svg @@ -0,0 +1,12 @@ + + + + WooCommerce + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/public/assets/WordPress.svg b/public/assets/WordPress.svg new file mode 100644 index 00000000000..004fdc7b734 --- /dev/null +++ b/public/assets/WordPress.svg @@ -0,0 +1,11 @@ + + + + WordPress + Created with Sketch. + + + + + + \ No newline at end of file diff --git a/src/services/cloud_apps/index.ts b/src/services/cloud_apps/index.ts new file mode 100644 index 00000000000..210749a2dbb --- /dev/null +++ b/src/services/cloud_apps/index.ts @@ -0,0 +1,26 @@ +import { API_ROOT } from 'src/constants'; +import Request, { setMethod, setParams, setURL, setXFilter } from '../index'; + +interface CloudApp { + sequence: number; + /** + * will be something like /assets/minecraft.svg + * front-end needs to provide the location + */ + logo_url: string | null; + label: string; + stackscript_id: number; + images: string[]; + user_defined_fields: any[]; + created: string; + id: number; +} + +export const getCloudApps = (params: any, filter: any) => { + return Request>( + setURL(`${API_ROOT}beta/linode/one-click-apps`), + setMethod('GET'), + setParams(params), + setXFilter(filter) + ).then(response => response.data); +}; From 253c904dc3482dfa6879a1c87dc384c54ce8f1de Mon Sep 17 00:00:00 2001 From: mmckenna Date: Tue, 12 Mar 2019 11:34:13 -0400 Subject: [PATCH 2/2] remove logos from src dir --- src/assets/cloudapps/Ark@1x.svg | 3 --- src/assets/cloudapps/CSGO2.svg | 3 --- src/assets/cloudapps/Drupal.svg | 14 ------------- src/assets/cloudapps/GitLab.svg | 17 --------------- src/assets/cloudapps/LAMP.svg | 11 ---------- src/assets/cloudapps/MERN.svg | 24 --------------------- src/assets/cloudapps/Minecraft.svg | 10 --------- src/assets/cloudapps/OpenVPN.svg | 12 ----------- src/assets/cloudapps/Rust.svg | 3 --- src/assets/cloudapps/TF2.svg | 11 ---------- src/assets/cloudapps/Terraria.svg | 3 --- src/assets/cloudapps/Wireguard.svg | 31 ---------------------------- src/assets/cloudapps/WooCommerce.svg | 12 ----------- src/assets/cloudapps/WordPress.svg | 11 ---------- 14 files changed, 165 deletions(-) delete mode 100644 src/assets/cloudapps/Ark@1x.svg delete mode 100644 src/assets/cloudapps/CSGO2.svg delete mode 100644 src/assets/cloudapps/Drupal.svg delete mode 100644 src/assets/cloudapps/GitLab.svg delete mode 100644 src/assets/cloudapps/LAMP.svg delete mode 100644 src/assets/cloudapps/MERN.svg delete mode 100644 src/assets/cloudapps/Minecraft.svg delete mode 100644 src/assets/cloudapps/OpenVPN.svg delete mode 100644 src/assets/cloudapps/Rust.svg delete mode 100644 src/assets/cloudapps/TF2.svg delete mode 100644 src/assets/cloudapps/Terraria.svg delete mode 100644 src/assets/cloudapps/Wireguard.svg delete mode 100644 src/assets/cloudapps/WooCommerce.svg delete mode 100644 src/assets/cloudapps/WordPress.svg diff --git a/src/assets/cloudapps/Ark@1x.svg b/src/assets/cloudapps/Ark@1x.svg deleted file mode 100644 index 95e26baf552..00000000000 --- a/src/assets/cloudapps/Ark@1x.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/cloudapps/CSGO2.svg b/src/assets/cloudapps/CSGO2.svg deleted file mode 100644 index 7157526a6f0..00000000000 --- a/src/assets/cloudapps/CSGO2.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/cloudapps/Drupal.svg b/src/assets/cloudapps/Drupal.svg deleted file mode 100644 index f9f9874936c..00000000000 --- a/src/assets/cloudapps/Drupal.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - Drupal - Created with Sketch. - - - - - - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/GitLab.svg b/src/assets/cloudapps/GitLab.svg deleted file mode 100644 index f1b682aac33..00000000000 --- a/src/assets/cloudapps/GitLab.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - GitLab - Created with Sketch. - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/LAMP.svg b/src/assets/cloudapps/LAMP.svg deleted file mode 100644 index 270a5ed1a84..00000000000 --- a/src/assets/cloudapps/LAMP.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - LAMP - Created with Sketch. - - - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/MERN.svg b/src/assets/cloudapps/MERN.svg deleted file mode 100644 index f482fcd2cfc..00000000000 --- a/src/assets/cloudapps/MERN.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - MERN - Created with Sketch. - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/Minecraft.svg b/src/assets/cloudapps/Minecraft.svg deleted file mode 100644 index a7a88b46fa2..00000000000 --- a/src/assets/cloudapps/Minecraft.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Minecraft - Created with Sketch. - - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/OpenVPN.svg b/src/assets/cloudapps/OpenVPN.svg deleted file mode 100644 index 9fe24377c6c..00000000000 --- a/src/assets/cloudapps/OpenVPN.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - OpenVPN - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/Rust.svg b/src/assets/cloudapps/Rust.svg deleted file mode 100644 index 66707193cb3..00000000000 --- a/src/assets/cloudapps/Rust.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/cloudapps/TF2.svg b/src/assets/cloudapps/TF2.svg deleted file mode 100644 index 35bd7b4c128..00000000000 --- a/src/assets/cloudapps/TF2.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - TF2 - Created with Sketch. - - - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/Terraria.svg b/src/assets/cloudapps/Terraria.svg deleted file mode 100644 index 71f0f922c8c..00000000000 --- a/src/assets/cloudapps/Terraria.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/cloudapps/Wireguard.svg b/src/assets/cloudapps/Wireguard.svg deleted file mode 100644 index 928f43c9ccf..00000000000 --- a/src/assets/cloudapps/Wireguard.svg +++ /dev/null @@ -1,31 +0,0 @@ - - - - Wireguard - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/WooCommerce.svg b/src/assets/cloudapps/WooCommerce.svg deleted file mode 100644 index 0f12d691396..00000000000 --- a/src/assets/cloudapps/WooCommerce.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - WooCommerce - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/src/assets/cloudapps/WordPress.svg b/src/assets/cloudapps/WordPress.svg deleted file mode 100644 index 004fdc7b734..00000000000 --- a/src/assets/cloudapps/WordPress.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - WordPress - Created with Sketch. - - - - - - \ No newline at end of file