Skip to content

Commit

Permalink
replace flex-resizer with angular-split
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Dec 15, 2024
1 parent 20e0918 commit 9618187
Show file tree
Hide file tree
Showing 16 changed files with 195 additions and 366 deletions.
2 changes: 1 addition & 1 deletion packages/altair-app/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const jestConfig: Config = {
setupFilesAfterEnv: ['<rootDir>/src/setup-jest.ts'],
// moduleDirectories: ['node_modules', '<rootDir>/src'],
transformIgnorePatterns: [
'node_modules/.pnpm/(?!@angular|@firebase|@ngrx|@sentry|lodash-es|altair-graphql-core|angular-resizable-element|dexie|uuid|ngx-cookie-service|ngx-markdown|ky|color-name|json-schema-library|graphql-language-service|vscode-languageserver-types|cm6-graphql|ngx-toastr|@ngx-translate|lucide-angular|ng-zorro-antd|@ant-design\\+icons-angular|ngx-pipes)',
'node_modules/.pnpm/(?!@angular|@firebase|@ngrx|@sentry|lodash-es|altair-graphql-core|angular-resizable-element|angular-split|dexie|uuid|ngx-cookie-service|ngx-markdown|ky|color-name|json-schema-library|graphql-language-service|vscode-languageserver-types|cm6-graphql|ngx-toastr|@ngx-translate|lucide-angular|ng-zorro-antd|@ant-design\\+icons-angular|ngx-pipes)',
],
};

Expand Down
1 change: 1 addition & 0 deletions packages/altair-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"ajv": "^8.11.2",
"altair-graphql-core": "workspace:*",
"angular-resizable-element": "^6.0.0",
"angular-split": "^18.0.0",
"apollo-cache-inmemory": "1.6.6",
"apollo-link": "1.2.14",
"apollo-link-http": "1.5.17",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { HistoryDialogComponent } from './history-dialog/history-dialog.componen
import { SettingsDialogComponent } from './settings-dialog/settings-dialog.component';
import { ImportCurlDialogComponent } from './import-curl-dialog/import-curl-dialog.component';
import { AddCollectionQueryDialogComponent } from './add-collection-query-dialog/add-collection-query-dialog.component';
import { FlexResizerComponent } from './flex-resizer/flex-resizer.component';
import { VariablesEditorComponent } from './variables-editor/variables-editor.component';
import { VariableFileItemComponent } from './variable-file-item/variable-file-item.component';
import { QueryCollectionsComponent } from './query-collections/query-collections.component';
Expand Down Expand Up @@ -68,7 +67,6 @@ const COMPONENTS = [
SettingsDialogComponent,
ImportCurlDialogComponent,
AddCollectionQueryDialogComponent,
FlexResizerComponent,
VariablesEditorComponent,
VariableFileItemComponent,
QueryCollectionsComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@
}
}
@case ('field') {
@if (!(hideDeprecatedDocItems && getField(docView)?.isDeprecated) && docView.view === 'field') {
@if (
!(hideDeprecatedDocItems && getField(docView)?.isDeprecated) &&
docView.view === 'field'
) {
<app-doc-viewer-field
[data]="getField(docView)"
[gqlSchema]="gqlSchema"
Expand Down Expand Up @@ -161,4 +164,3 @@
{{ 'SERVER_NO_INTROSPECTION_SUPPORT' | translate }}
</div>
}
<app-flex-resizer (resizeChange)="onResize($event)"></app-flex-resizer>
Empty file.
Empty file.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,5 @@ exports[`QueryEditorComponent should render correctly 1`] = `
</nz-tab>
</nz-tabset>
<app-flex-resizer />
</app-query-editor>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
[ngClass]="{ 'show-variables': showVariableDialog }"
mwlResizable
[ngStyle]="{
minHeight: showVariableDialog ? variableEditorHeight : undefined
minHeight: showVariableDialog ? variableEditorHeight : undefined,
}"
[enableGhostResize]="true"
[validateResize]="validate"
Expand Down Expand Up @@ -86,13 +86,13 @@
fileVariableDataChange.emit({
index: index,
fileData: $event.files,
fromCache: $event.fromCache
fromCache: $event.fromCache,
})
"
(fileVariableIsMultipleChange)="
fileVariableIsMultipleChange.emit({
index: index,
isMultiple: $event
isMultiple: $event,
})
"
(deleteFileVariableChange)="
Expand Down Expand Up @@ -135,7 +135,7 @@
<span
[ngClass]="{
'ant-tabs--status-enabled':
authorizationState && isAuthorizationEnabled(authorizationState)
authorizationState && isAuthorizationEnabled(authorizationState),
}"
>
{{ 'AUTHORIZATION_TAB' | translate }}
Expand All @@ -149,7 +149,3 @@
/>
</nz-tab>
</nz-tabset>
<app-flex-resizer
[resizeDirection]="'right'"
(resizeChange)="onResize($event)"
></app-flex-resizer>
Loading

0 comments on commit 9618187

Please sign in to comment.