Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Release 10.3.0 #3253

Merged
merged 23 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
419725c
Chore: update to 9.7.0 (#3044)
thewahome Mar 15, 2024
464ae59
Chore(deps): Bump follow-redirects from 1.15.0 to 1.15.6 (#3058)
dependabot[bot] Mar 20, 2024
5e9c4e2
Fix: Resource path causing app to crash (#3053)
ElinorW Mar 21, 2024
151f34a
Fix: [autocomplete] show dollar sign paths (#3052)
thewahome Mar 25, 2024
53c97bb
Fix: Canary urls crashing (#3062)
ElinorW Mar 26, 2024
d88a4f8
Chore: Update to 9.8.0 (#3067)
ElinorW Mar 27, 2024
f3e73d6
Fix: Dependabot upgrades - March (#3061)
ElinorW Apr 24, 2024
a84d7a4
Feature: support text csv (#3123)
thewahome Apr 29, 2024
38c3849
Fix: malformed json error (#3107)
thewahome Apr 30, 2024
d2fb7f5
Chore: Update to 10.0.0 (#3147)
thewahome May 15, 2024
5d4e874
Chore: app migration with feature flags (#3144)
thewahome May 15, 2024
7695bca
Chore: Update 10.1.0 (#3149)
thewahome May 27, 2024
499a107
refactor: use strong types in authentication module (#3164)
musale Jun 7, 2024
42599d7
Chore: Dependabot upgrades - April (#3124)
thewahome Jun 7, 2024
7c4ee1d
fix: remove character escape in json response formatting (#3163)
musale Jun 7, 2024
b2dcd19
Fix: add parameters to token request (#3218)
thewahome Jun 18, 2024
552a2cb
Chore: Update to 10.2.0 (#3220)
thewahome Jun 19, 2024
072f4e6
Fix: Monaco 404 errors (#3222)
ElinorW Jun 19, 2024
6e4266c
Chore: Update to 10.2.1 (#3224)
ElinorW Jul 3, 2024
d46a9f3
Fix: move getting resource version children to a function (#3244)
musale Jul 9, 2024
a7e142b
Fix: monaco errors (#3251)
thewahome Jul 15, 2024
a1ee21f
Bump version to 10.3.0
invalid-email-address Jul 15, 2024
8d47c0c
Merge branch 'master' into release/10.3.0
thewahome Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ module.exports = function (webpackEnv) {
'sass-loader'
)
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.ttf$/,
type: 'asset/resource'
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graph-explorer-v2",
"version": "10.2.1",
"version": "10.3.0",
"private": true,
"dependencies": {
"@augloop/types-core": "file:packages/types-core-2.16.189.tgz",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ const SuffixRenderer = () => {

const getDocumentationLink = (): string | null => {
const { queries } = samples;

const getChildren = ()=> {
if (resources.data && Object.keys(resources.data).length > 0 && sampleQuery.selectedVersion in resources.data){
return resources.data[sampleQuery.selectedVersion].children ?? [];
}
return [];
}
const resourceDocumentationUrl = new DocumentationService({
sampleQuery,
source: Object.keys(resources.data).length > 0 ?
resources.data[sampleQuery.selectedVersion].children! : []
source: getChildren()
}).getDocumentationLink();

const sampleDocumentationUrl = new DocumentationService({
Expand Down
37 changes: 37 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,43 @@ function loadResources() {
}
loadResources();

/**
* Set's up Monaco Editor's Workers.
*/
enum Workers {
Json = 'json',
Editor = 'editor',
Typescript='ts',
Css='css',
Html='html'
}

window.MonacoEnvironment = {
getWorkerUrl(moduleId: any, label: string) {
switch (label) {
case 'json':
return getWorkerFor(Workers.Json);
case 'css':
return getWorkerFor(Workers.Css);
case 'html':
return getWorkerFor(Workers.Html);
case 'typescript':
return getWorkerFor(Workers.Typescript);
default:
return getWorkerFor(Workers.Editor);
}
}
};

function getWorkerFor(worker: string): string {
// tslint:disable-next-line:max-line-length
const WORKER_PATH =
'https://graphstagingblobstorage.blob.core.windows.net/staging/vendor/bower_components/explorer-v2/build';

return `data:text/javascript;charset=utf-8,${encodeURIComponent(`
importScripts('${WORKER_PATH}/${worker}.worker.js');`)}`;
}

variantService.initialize();
const telemetryProvider: ITelemetry = telemetry;
telemetryProvider.initialize();
Expand Down
3 changes: 3 additions & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { Environment } from 'monaco-editor/esm/vs/editor/editor.api';

export {};
declare global {
interface Window {
ClientId: string | undefined
MonacoEnvironment: Environment;
}
}

Expand Down
Loading