Skip to content

Commit

Permalink
Temp workaround for chooser not displaying new OCI cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
interurban committed Dec 27, 2024
1 parent af6a3d8 commit 0cb3be0
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 20 deletions.
12 changes: 0 additions & 12 deletions assets/css/bundle.css

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions assets/css/marketing.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*!*********************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./src/scss/_marketing.scss ***!
\*********************************************************************************************************************************************************************************************************************/
/*! tailwindcss v2.2.15 | MIT License | https://tailwindcss.com */

/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
Expand Down
67 changes: 66 additions & 1 deletion assets/js/bundle.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/js/marketing.js
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
(()=>{"use strict";var __webpack_modules__={"./src/scss/_marketing.scss":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://theme/./src/scss/_marketing.scss?")},"./src/ts/marketing.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scss_marketing_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scss/_marketing.scss */ "./src/scss/_marketing.scss");\n\n\n\n//# sourceURL=webpack://theme/./src/ts/marketing.ts?')}},__webpack_module_cache__={};function __webpack_require__(_){var e=__webpack_module_cache__[_];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[_]={exports:{}};return __webpack_modules__[_](r,r.exports,__webpack_require__),r.exports}__webpack_require__.r=_=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__("./src/ts/marketing.ts")})();
4 changes: 2 additions & 2 deletions content/docs/insights/get-started/begin.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Leave the default environment definition for now, and you will return to finish

<!-- TODO: get oracle cloud chooser working -->

{{% chooser cloud "aws,azure,oracle,kubernetes" %}}
{{% chooser cloud "aws,azure,oci,kubernetes" %}}

{{% choosable cloud aws %}}

Expand Down Expand Up @@ -135,7 +135,7 @@ values:
{{% /choosable %}}
{{% choosable cloud oracle %}}
{{% choosable cloud oci %}}
To configure Pulumi Insights with OCI, you will use [OpenID Connect (OIDC)](docs/pulumi-cloud/access-management/oidc/) for authentication.
Expand Down
1 change: 1 addition & 0 deletions theme/stencil/src/components/choosable/choosable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class Choosable {
this.mode = "global";

if (this.mode === "global") {
// @ts-ignore-next-line
this.storeUnsubscribe = store.mapStateToProps(this, (state: AppState) => {
const {
preferences: { language, k8sLanguage, os, cloud, persona, backend },
Expand Down
7 changes: 6 additions & 1 deletion theme/stencil/src/components/chooser/chooser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { setLanguage, setK8sLanguage, setOS, setCloud, setPersona, setBackEnd }
export type LanguageKey = "javascript" | "typescript" | "python" | "go" | "csharp" | "fsharp" | "visualbasic" | "java" | "yaml";
export type K8sLanguageKey = "typescript" | "yaml" | "typescript-kx";
export type OSKey = "macos" | "linux" | "windows";
export type CloudKey = "aws" | "azure" | "gcp" | "kubernetes" | "digitalocean" | "docker";
export type CloudKey = "aws" | "azure" | "gcp" | "kubernetes" | "digitalocean" | "oci" | "docker";
export type PersonaKey = "developer" | "devops" | "security" | "leader";
export type BackEndKey = "service" | "self-managed";

Expand Down Expand Up @@ -518,6 +518,11 @@ export class Chooser {
name: "DigitalOcean",
preview: false,
},
{
key: "oci",
name: "Oracle Cloud",
preview: false,
},
{
key: "docker",
name: "Docker",
Expand Down

0 comments on commit 0cb3be0

Please sign in to comment.