Sfoglia il codice sorgente

Renames subscription folder to account

main
Eric Amodio 1 anno fa
parent
commit
d7836711b6
37 ha cambiato i file con 2011 aggiunte e 2011 eliminazioni
  1. +1
    -1
      src/commands/quickCommand.steps.ts
  2. +1
    -1
      src/constants.ts
  3. +2
    -2
      src/container.ts
  4. +2
    -2
      src/errors.ts
  5. +1
    -1
      src/features.ts
  6. +3
    -3
      src/git/gitProviderService.ts
  7. +1
    -1
      src/git/remotes/richRemoteProvider.ts
  8. +1
    -1
      src/plus/focus/focusService.ts
  9. +7
    -7
      src/plus/gk/account/authenticationConnection.ts
  10. +5
    -5
      src/plus/gk/account/authenticationProvider.ts
  11. +0
    -0
      src/plus/gk/account/subscription.ts
  12. +3
    -3
      src/plus/gk/account/subscriptionService.ts
  13. +2
    -2
      src/plus/gk/checkin.ts
  14. +2
    -2
      src/plus/webviews/account/accountWebview.ts
  15. +1
    -1
      src/plus/webviews/account/protocol.ts
  16. +1
    -1
      src/plus/webviews/focus/focusWebview.ts
  17. +1
    -1
      src/plus/webviews/graph/graphWebview.ts
  18. +1
    -1
      src/plus/webviews/graph/protocol.ts
  19. +1
    -1
      src/plus/webviews/graph/statusbar.ts
  20. +1
    -1
      src/plus/webviews/timeline/timelineWebview.ts
  21. +2
    -2
      src/plus/workspaces/workspacesService.ts
  22. +1
    -1
      src/quickpicks/items/directive.ts
  23. +1
    -1
      src/uris/uriService.ts
  24. +1
    -1
      src/views/nodes/abstract/repositoriesSubscribeableNode.ts
  25. +1
    -1
      src/webviews/apps/plus/account/account.ts
  26. +1
    -1
      src/webviews/apps/plus/account/components/account-content.ts
  27. +1
    -1
      src/webviews/apps/plus/graph/GraphWrapper.tsx
  28. +1
    -1
      src/webviews/apps/plus/shared/components/feature-gate-plus-state.ts
  29. +2
    -2
      src/webviews/apps/shared/components/feature-gate-badge.ts
  30. +1
    -1
      src/webviews/apps/shared/components/feature-gate.ts
  31. +1
    -1
      src/webviews/apps/tsconfig.json
  32. +3
    -3
      src/webviews/welcome/welcomeWebview.ts

+ 1
- 1
src/commands/quickCommand.steps.ts Vedi File

@ -37,7 +37,7 @@ import type { GitTag, TagSortOptions } from '../git/models/tag';
import { sortTags } from '../git/models/tag';
import type { GitWorktree } from '../git/models/worktree';
import { remoteUrlRegex } from '../git/parsers/remoteParser';
import { isSubscriptionPaidPlan, isSubscriptionPreviewTrialExpired } from '../plus/gk/subscription/subscription';
import { isSubscriptionPaidPlan, isSubscriptionPreviewTrialExpired } from '../plus/gk/account/subscription';
import {
CommitApplyFileChangesCommandQuickPickItem,
CommitBrowseRepositoryFromHereCommandQuickPickItem,

+ 1
- 1
src/constants.ts Vedi File

@ -1,7 +1,7 @@
import type { ViewShowBranchComparison } from './config';
import type { Environment } from './container';
import type { StoredSearchQuery } from './git/search';
import type { Subscription } from './plus/gk/subscription/subscription';
import type { Subscription } from './plus/gk/account/subscription';
import type { TrackedUsage, TrackedUsageKeys } from './telemetry/usageTracker';
export const extensionPrefix = 'gitlens';

+ 2
- 2
src/container.ts Vedi File

@ -22,9 +22,9 @@ import { RichRemoteProviderService } from './git/remotes/remoteProviderService';
import { LineHoverController } from './hovers/lineHoverController';
import type { RepositoryPathMappingProvider } from './pathMapping/repositoryPathMappingProvider';
import { FocusService } from './plus/focus/focusService';
import { AccountAuthenticationProvider } from './plus/gk/authenticationProvider';
import { AccountAuthenticationProvider } from './plus/gk/account/authenticationProvider';
import { SubscriptionService } from './plus/gk/account/subscriptionService';
import { ServerConnection } from './plus/gk/serverConnection';
import { SubscriptionService } from './plus/gk/subscription/subscriptionService';
import { IntegrationAuthenticationService } from './plus/integrationAuthentication';
import { registerAccountWebviewView } from './plus/webviews/account/registration';
import { registerFocusWebviewCommands, registerFocusWebviewPanel } from './plus/webviews/focus/registration';

+ 2
- 2
src/errors.ts Vedi File

@ -1,8 +1,8 @@
import type { Uri } from 'vscode';
import { CancellationError as _CancellationError } from 'vscode';
import type { Response } from '@env/fetch';
import type { RequiredSubscriptionPlans, Subscription } from './plus/gk/subscription/subscription';
import { isSubscriptionPaidPlan } from './plus/gk/subscription/subscription';
import type { RequiredSubscriptionPlans, Subscription } from './plus/gk/account/subscription';
import { isSubscriptionPaidPlan } from './plus/gk/account/subscription';
export class AccessDeniedError extends Error {
public readonly subscription: Subscription;

+ 1
- 1
src/features.ts Vedi File

@ -1,5 +1,5 @@
import type { RepositoryVisibility } from './git/gitProvider';
import type { RequiredSubscriptionPlans, Subscription } from './plus/gk/subscription/subscription';
import type { RequiredSubscriptionPlans, Subscription } from './plus/gk/account/subscription';
export const enum Features {
Stashes = 'stashes',

+ 3
- 3
src/git/gitProviderService.ts Vedi File

@ -17,9 +17,9 @@ import { GlyphChars, Schemes } from '../constants';
import type { Container } from '../container';
import { AccessDeniedError, CancellationError, ProviderNotFoundError } from '../errors';
import type { FeatureAccess, Features, PlusFeatures, RepoFeatureAccess } from '../features';
import type { Subscription } from '../plus/gk/subscription/subscription';
import { isSubscriptionPaidPlan, SubscriptionPlanId } from '../plus/gk/subscription/subscription';
import type { SubscriptionChangeEvent } from '../plus/gk/subscription/subscriptionService';
import type { Subscription } from '../plus/gk/account/subscription';
import { isSubscriptionPaidPlan, SubscriptionPlanId } from '../plus/gk/account/subscription';
import type { SubscriptionChangeEvent } from '../plus/gk/account/subscriptionService';
import type { RepoComparisonKey } from '../repositories';
import { asRepoComparisonKey, Repositories } from '../repositories';
import { groupByFilterMap, groupByMap, joinUnique } from '../system/array';

+ 1
- 1
src/git/remotes/richRemoteProvider.ts Vedi File

@ -12,7 +12,7 @@ import { isWeb } from '@env/platform';
import type { Container } from '../../container';
import { AuthenticationError, ProviderRequestClientError } from '../../errors';
import { showIntegrationDisconnectedTooManyFailedRequestsWarningMessage } from '../../messages';
import { isSubscriptionPaidPlan, isSubscriptionPreviewTrialExpired } from '../../plus/gk/subscription/subscription';
import { isSubscriptionPaidPlan, isSubscriptionPreviewTrialExpired } from '../../plus/gk/account/subscription';
import type { IntegrationAuthenticationSessionDescriptor } from '../../plus/integrationAuthentication';
import { configuration } from '../../system/configuration';
import { gate } from '../../system/decorators/gate';

+ 1
- 1
src/plus/focus/focusService.ts Vedi File

@ -3,10 +3,10 @@ import { window } from 'vscode';
import type { Container } from '../../container';
import type { GitRemote } from '../../git/models/remote';
import type { RichRemoteProvider } from '../../git/remotes/richRemoteProvider';
import { isSubscriptionPaidPlan } from '../gk/subscription/subscription';
import { log } from '../../system/decorators/log';
import { Logger } from '../../system/logger';
import { getLogScope } from '../../system/logger.scope';
import { isSubscriptionPaidPlan } from '../gk/account/subscription';
import type { ServerConnection } from '../gk/serverConnection';
export interface FocusItem {

src/plus/gk/authenticationConnection.ts → src/plus/gk/account/authenticationConnection.ts Vedi File

@ -2,13 +2,13 @@ import type { CancellationToken, Disposable, StatusBarItem } from 'vscode';
import { CancellationTokenSource, env, StatusBarAlignment, Uri, window } from 'vscode';
import { uuid } from '@env/crypto';
import type { Response } from '@env/fetch';
import type { Container } from '../../container';
import { debug } from '../../system/decorators/log';
import type { DeferredEvent, DeferredEventExecutor } from '../../system/event';
import { promisifyDeferred } from '../../system/event';
import { Logger } from '../../system/logger';
import { getLogScope } from '../../system/logger.scope';
import type { ServerConnection } from './serverConnection';
import type { Container } from '../../../container';
import { debug } from '../../../system/decorators/log';
import type { DeferredEvent, DeferredEventExecutor } from '../../../system/event';
import { promisifyDeferred } from '../../../system/event';
import { Logger } from '../../../system/logger';
import { getLogScope } from '../../../system/logger.scope';
import type { ServerConnection } from '../serverConnection';
export const AuthenticationUriPathPrefix = 'did-authenticate';

src/plus/gk/authenticationProvider.ts → src/plus/gk/account/authenticationProvider.ts Vedi File

@ -5,12 +5,12 @@ import type {
} from 'vscode';
import { authentication, Disposable, EventEmitter, window } from 'vscode';
import { uuid } from '@env/crypto';
import type { Container, Environment } from '../../container';
import { debug } from '../../system/decorators/log';
import { Logger } from '../../system/logger';
import { getLogScope, setLogScopeExit } from '../../system/logger.scope';
import type { Container, Environment } from '../../../container';
import { debug } from '../../../system/decorators/log';
import { Logger } from '../../../system/logger';
import { getLogScope, setLogScopeExit } from '../../../system/logger.scope';
import type { ServerConnection } from '../serverConnection';
import { AuthenticationConnection } from './authenticationConnection';
import type { ServerConnection } from './serverConnection';
interface StoredSession {
id: string;

src/plus/gk/subscription/subscription.ts → src/plus/gk/account/subscription.ts Vedi File


src/plus/gk/subscription/subscriptionService.ts → src/plus/gk/account/subscriptionService.ts Vedi File

@ -39,11 +39,11 @@ import { flatten } from '../../../system/object';
import { pluralize } from '../../../system/string';
import { openWalkthrough } from '../../../system/utils';
import { satisfies } from '../../../system/version';
import { authenticationProviderId, authenticationProviderScopes } from '../authenticationProvider';
import type { GKCheckInResponse } from '../checkin';
import { getSubscriptionFromCheckIn } from '../checkin';
import type { ServerConnection } from '../serverConnection';
import { ensurePlusFeaturesEnabled } from '../utils';
import type { GKCheckInResponse } from './checkin';
import { getSubscriptionFromCheckIn } from './checkin';
import { authenticationProviderId, authenticationProviderScopes } from './authenticationProvider';
import type { Subscription } from './subscription';
import {
assertSubscriptionState,

src/plus/gk/subscription/checkin.ts → src/plus/gk/checkin.ts Vedi File

@ -1,5 +1,5 @@
import type { Subscription } from './subscription';
import { getSubscriptionPlan, getSubscriptionPlanPriority, SubscriptionPlanId } from './subscription';
import type { Subscription } from './account/subscription';
import { getSubscriptionPlan, getSubscriptionPlanPriority, SubscriptionPlanId } from './account/subscription';
export interface GKCheckInResponse {
readonly user: GKUser;

+ 2
- 2
src/plus/webviews/account/accountWebview.ts Vedi File

@ -1,12 +1,12 @@
import { Disposable, window } from 'vscode';
import { getAvatarUriFromGravatarEmail } from '../../../avatars';
import type { Container } from '../../../container';
import type { Subscription } from '../../gk/subscription/subscription';
import { registerCommand } from '../../../system/command';
import type { Deferrable } from '../../../system/function';
import { debounce } from '../../../system/function';
import type { WebviewController, WebviewProvider } from '../../../webviews/webviewController';
import type { SubscriptionChangeEvent } from '../../gk/subscription/subscriptionService';
import type { Subscription } from '../../gk/account/subscription';
import type { SubscriptionChangeEvent } from '../../gk/account/subscriptionService';
import type { State } from './protocol';
import { DidChangeSubscriptionNotificationType } from './protocol';

+ 1
- 1
src/plus/webviews/account/protocol.ts Vedi File

@ -1,6 +1,6 @@
import type { WebviewState } from '../../../webviews/protocol';
import { IpcNotificationType } from '../../../webviews/protocol';
import type { Subscription } from '../../gk/subscription/subscription';
import type { Subscription } from '../../gk/account/subscription';
export interface State extends WebviewState {
webroot?: string;

+ 1
- 1
src/plus/webviews/focus/focusWebview.ts Vedi File

@ -34,7 +34,7 @@ import type { IpcMessage } from '../../../webviews/protocol';
import { onIpc } from '../../../webviews/protocol';
import type { WebviewController, WebviewProvider } from '../../../webviews/webviewController';
import type { EnrichedItem, FocusItem } from '../../focus/focusService';
import type { SubscriptionChangeEvent } from '../../gk/subscription/subscriptionService';
import type { SubscriptionChangeEvent } from '../../gk/account/subscriptionService';
import type { ShowInCommitGraphCommandArgs } from '../graph/protocol';
import type {
OpenBranchParams,

+ 1
- 1
src/plus/webviews/graph/graphWebview.ts Vedi File

@ -86,7 +86,7 @@ import { onIpc } from '../../../webviews/protocol';
import type { WebviewController, WebviewProvider } from '../../../webviews/webviewController';
import type { WebviewPanelShowCommandArgs } from '../../../webviews/webviewsController';
import { isSerializedState } from '../../../webviews/webviewsController';
import type { SubscriptionChangeEvent } from '../../gk/subscription/subscriptionService';
import type { SubscriptionChangeEvent } from '../../gk/account/subscriptionService';
import type {
BranchState,
DimMergeCommitsParams,

+ 1
- 1
src/plus/webviews/graph/protocol.ts Vedi File

@ -38,7 +38,7 @@ import type { DateTimeFormat } from '../../../system/date';
import type { WebviewItemContext, WebviewItemGroupContext } from '../../../system/webview';
import type { WebviewState } from '../../../webviews/protocol';
import { IpcCommandType, IpcNotificationType } from '../../../webviews/protocol';
import type { Subscription } from '../../gk/subscription/subscription';
import type { Subscription } from '../../gk/account/subscription';
export type { GraphRefType } from '@gitkraken/gitkraken-components';

+ 1
- 1
src/plus/webviews/graph/statusbar.ts Vedi File

@ -5,7 +5,7 @@ import type { Container } from '../../../container';
import { configuration } from '../../../system/configuration';
import { getContext, onDidChangeContext } from '../../../system/context';
import { once } from '../../../system/function';
import type { SubscriptionChangeEvent } from '../../gk/subscription/subscriptionService';
import type { SubscriptionChangeEvent } from '../../gk/account/subscriptionService';
import { arePlusFeaturesEnabled } from '../../gk/utils';
export class GraphStatusBarController implements Disposable {

+ 1
- 1
src/plus/webviews/timeline/timelineWebview.ts Vedi File

@ -25,7 +25,7 @@ import type { WebviewController, WebviewProvider } from '../../../webviews/webvi
import { updatePendingContext } from '../../../webviews/webviewController';
import type { WebviewShowOptions } from '../../../webviews/webviewsController';
import { isSerializedState } from '../../../webviews/webviewsController';
import type { SubscriptionChangeEvent } from '../../gk/subscription/subscriptionService';
import type { SubscriptionChangeEvent } from '../../gk/account/subscriptionService';
import type { Commit, Period, State } from './protocol';
import { DidChangeNotificationType, OpenDataPointCommandType, UpdatePeriodCommandType } from './protocol';

+ 2
- 2
src/plus/workspaces/workspacesService.ts Vedi File

@ -6,13 +6,13 @@ import type { GitRemote } from '../../git/models/remote';
import { RemoteResourceType } from '../../git/models/remoteResource';
import { Repository } from '../../git/models/repository';
import { showRepositoriesPicker } from '../../quickpicks/repositoryPicker';
import { SubscriptionState } from '../gk/subscription/subscription';
import { log } from '../../system/decorators/log';
import { normalizePath } from '../../system/path';
import type { OpenWorkspaceLocation } from '../../system/utils';
import { openWorkspace } from '../../system/utils';
import { SubscriptionState } from '../gk/account/subscription';
import type { SubscriptionChangeEvent } from '../gk/account/subscriptionService';
import type { ServerConnection } from '../gk/serverConnection';
import type { SubscriptionChangeEvent } from '../gk/subscription/subscriptionService';
import type {
AddWorkspaceRepoDescriptor,
CloudWorkspaceData,

+ 1
- 1
src/quickpicks/items/directive.ts Vedi File

@ -1,5 +1,5 @@
import type { QuickPickItem } from 'vscode';
import type { Subscription } from '../../plus/gk/subscription/subscription';
import type { Subscription } from '../../plus/gk/account/subscription';
export enum Directive {
Back,

+ 1
- 1
src/uris/uriService.ts Vedi File

@ -1,7 +1,7 @@
import type { Disposable, Event, Uri, UriHandler } from 'vscode';
import { EventEmitter, window } from 'vscode';
import type { Container } from '../container';
import { AuthenticationUriPathPrefix } from '../plus/gk/authenticationConnection';
import { AuthenticationUriPathPrefix } from '../plus/gk/account/authenticationConnection';
import { log } from '../system/decorators/log';
// This service is in charge of registering a URI handler and handling/emitting URI events received by GitLens.

+ 1
- 1
src/views/nodes/abstract/repositoriesSubscribeableNode.ts Vedi File

@ -1,7 +1,7 @@
import { Disposable } from 'vscode';
import type { RepositoriesChangeEvent } from '../../../git/gitProviderService';
import { unknownGitUri } from '../../../git/gitUri';
import type { SubscriptionChangeEvent } from '../../../plus/gk/subscription/subscriptionService';
import type { SubscriptionChangeEvent } from '../../../plus/gk/account/subscriptionService';
import { debug } from '../../../system/decorators/log';
import { weakEvent } from '../../../system/event';
import { szudzikPairing } from '../../../system/function';

+ 1
- 1
src/webviews/apps/plus/account/account.ts Vedi File

@ -1,7 +1,7 @@
/*global*/
import './account.scss';
import type { Disposable } from 'vscode';
import { getSubscriptionTimeRemaining, SubscriptionState } from '../../../../plus/gk/subscription/subscription';
import { getSubscriptionTimeRemaining, SubscriptionState } from '../../../../plus/gk/account/subscription';
import type { State } from '../../../../plus/webviews/account/protocol';
import { DidChangeSubscriptionNotificationType } from '../../../../plus/webviews/account/protocol';
import type { IpcMessage } from '../../../protocol';

+ 1
- 1
src/webviews/apps/plus/account/components/account-content.ts Vedi File

@ -1,6 +1,6 @@
import { css, html, LitElement, nothing } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { hasAccountFromSubscriptionState, SubscriptionState } from '../../../../../plus/gk/subscription/subscription';
import { hasAccountFromSubscriptionState, SubscriptionState } from '../../../../../plus/gk/account/subscription';
import { pluralize } from '../../../../../system/string';
import { elementBase, linkBase } from '../../../shared/components/styles/lit/base.css';
import '../../../shared/components/button';

+ 1
- 1
src/webviews/apps/plus/graph/GraphWrapper.tsx Vedi File

@ -18,7 +18,7 @@ import React, { createElement, useEffect, useMemo, useRef, useState } from 'reac
import { getPlatform } from '@env/platform';
import type { DateStyle } from '../../../../config';
import type { SearchQuery } from '../../../../git/search';
import type { Subscription } from '../../../../plus/gk/subscription/subscription';
import type { Subscription } from '../../../../plus/gk/account/subscription';
import type {
DidEnsureRowParams,
DidSearchParams,

+ 1
- 1
src/webviews/apps/plus/shared/components/feature-gate-plus-state.ts Vedi File

@ -1,6 +1,6 @@
import { css, html, LitElement, nothing } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { SubscriptionState } from '../../../../../plus/gk/subscription/subscription';
import { SubscriptionState } from '../../../../../plus/gk/account/subscription';
import '../../../shared/components/button';
import { linkStyles } from './vscode.css';

+ 2
- 2
src/webviews/apps/shared/components/feature-gate-badge.ts Vedi File

@ -1,13 +1,13 @@
import { css, html, LitElement, nothing } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import type { Subscription } from '../../../../plus/gk/subscription/subscription';
import type { Subscription } from '../../../../plus/gk/account/subscription';
import {
getSubscriptionStatePlanName,
getSubscriptionTimeRemaining,
isSubscriptionStatePaidOrTrial,
isSubscriptionStateTrial,
SubscriptionState,
} from '../../../../plus/gk/subscription/subscription';
} from '../../../../plus/gk/account/subscription';
import '../../plus/shared/components/feature-gate-plus-state';
import { pluralize } from '../../../../system/string';
import { focusOutline } from './styles/lit/a11y.css';

+ 1
- 1
src/webviews/apps/shared/components/feature-gate.ts Vedi File

@ -1,6 +1,6 @@
import { css, html, LitElement, nothing } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { isSubscriptionStatePaidOrTrial, SubscriptionState } from '../../../../plus/gk/subscription/subscription';
import { isSubscriptionStatePaidOrTrial, SubscriptionState } from '../../../../plus/gk/account/subscription';
import '../../plus/shared/components/feature-gate-plus-state';
@customElement('gk-feature-gate')

+ 1
- 1
src/webviews/apps/tsconfig.json Vedi File

@ -11,7 +11,7 @@
},
"include": [
"**/*",
"../../plus/gk/subscription/**/*",
"../../plus/gk/**/*",
"../../plus/webviews/**/*",
"../../@types/**/*",
"../protocol.ts",

+ 3
- 3
src/webviews/welcome/welcomeWebview.ts Vedi File

@ -1,9 +1,9 @@
import type { ConfigurationChangeEvent } from 'vscode';
import { Disposable, workspace } from 'vscode';
import type { Container } from '../../container';
import type { SubscriptionChangeEvent } from '../../plus/gk/subscription/subscriptionService';
import type { Subscription } from '../../plus/gk/subscription/subscription';
import { SubscriptionState } from '../../plus/gk/subscription/subscription';
import type { Subscription } from '../../plus/gk/account/subscription';
import { SubscriptionState } from '../../plus/gk/account/subscription';
import type { SubscriptionChangeEvent } from '../../plus/gk/account/subscriptionService';
import { configuration } from '../../system/configuration';
import type { IpcMessage } from '../protocol';
import { onIpc } from '../protocol';

Caricamento…
Annulla
Salva