Sfoglia il codice sorgente

refactor(server): Order VendureConfig props alphabetically

Michael Bromley 7 anni fa
parent
commit
4cb4911592
1 ha cambiato i file con 44 aggiunte e 44 eliminazioni
  1. 44 44
      server/src/config/vendure-config.ts

+ 44 - 44
server/src/config/vendure-config.ts

@@ -205,48 +205,48 @@ export interface ImportExportOptions {
 
 export interface VendureConfig {
     /**
-     * The name of the property which contains the token of the
-     * active channel. This property can be included either in
-     * the request header or as a query string.
+     * The path to the GraphQL API.
      */
-    channelTokenKey?: string;
+    apiPath?: string;
     /**
-     * The token for the default channel. If not specified, a token
-     * will be randomly generated.
+     * Configuration for the handling of Assets.
      */
-    defaultChannelToken?: string | null;
+    assetOptions?: AssetOptions;
     /**
-     * The default languageCode of the app.
+     * Configuration for authorization.
      */
-    defaultLanguageCode?: LanguageCode;
+    authOptions: AuthOptions;
     /**
-     * The path to the GraphQL API.
+     * The name of the property which contains the token of the
+     * active channel. This property can be included either in
+     * the request header or as a query string.
      */
-    apiPath?: string;
+    channelTokenKey?: string;
     /**
      * Set the CORS handling for the server.
      */
     cors?: boolean | CorsOptions;
     /**
-     * Set the hostname of the server.
+     * Defines custom fields which can be used to extend the built-in entities.
      */
-    hostname?: string;
+    customFields?: CustomFields;
     /**
-     * Which port the Vendure server should listen on.
+     * The connection options used by TypeORM to connect to the database.
      */
-    port: number;
+    dbConnectionOptions: ConnectionOptions;
     /**
-     * When set to true, no application logging will be output to the console.
+     * The token for the default channel. If not specified, a token
+     * will be randomly generated.
      */
-    silent?: boolean;
+    defaultChannelToken?: string | null;
     /**
-     * Configuration for authorization.
+     * The default languageCode of the app.
      */
-    authOptions: AuthOptions;
+    defaultLanguageCode?: LanguageCode;
     /**
-     * Configuration for the handling of Assets.
+     * Configures the handling of transactional emails.
      */
-    assetOptions?: AssetOptions;
+    emailOptions?: EmailOptions<any>;
     /**
      * Defines the strategy used for both storing the primary keys of entities
      * in the database, and the encoding & decoding of those ids when exposing
@@ -255,52 +255,52 @@ export interface VendureConfig {
      */
     entityIdStrategy?: EntityIdStrategy<any>;
     /**
-     * The connection options used by TypeORM to connect to the database.
-     */
-    dbConnectionOptions: ConnectionOptions;
-    /**
-     * Configures the Conditions and Actions available when creating Promotions.
+     * Set the hostname of the server.
      */
-    promotionOptions?: PromotionOptions;
+    hostname?: string;
     /**
-     * Configures the available checkers and calculators for ShippingMethods.
+     * Configuration settings for data import and export.
      */
-    shippingOptions?: ShippingOptions;
+    importExportOptions?: ImportExportOptions;
     /**
-     * Defines custom fields which can be used to extend the built-in entities.
+     * Define the strategies governing how Orders are merged when an existing
+     * Customer signs in.
      */
-    customFields?: CustomFields;
+    orderMergeOptions?: OrderMergeOptions;
     /**
      * Defines custom states in the order process finite state machine.
      */
     orderProcessOptions?: OrderProcessOptions<any>;
     /**
-     * Define the strategies governing how Orders are merged when an existing
-     * Customer signs in.
+     * Custom Express middleware for the server.
      */
-    orderMergeOptions?: OrderMergeOptions;
+    middleware?: Array<{ handler: RequestHandler; route: string }>;
     /**
      * Configures available payment processing methods.
      */
     paymentOptions: PaymentOptions;
     /**
-     * Configures how taxes are calculated on products.
+     * An array of plugins.
      */
-    taxOptions?: TaxOptions;
+    plugins?: VendurePlugin[];
     /**
-     * Configures the handling of transactional emails.
+     * Which port the Vendure server should listen on.
      */
-    emailOptions?: EmailOptions<any>;
+    port: number;
     /**
-     * Configuration settings for data import and export.
+     * Configures the Conditions and Actions available when creating Promotions.
      */
-    importExportOptions?: ImportExportOptions;
+    promotionOptions?: PromotionOptions;
     /**
-     * Custom Express middleware for the server.
+     * Configures the available checkers and calculators for ShippingMethods.
      */
-    middleware?: Array<{ handler: RequestHandler; route: string }>;
+    shippingOptions?: ShippingOptions;
     /**
-     * An array of plugins.
+     * When set to true, no application logging will be output to the console.
      */
-    plugins?: VendurePlugin[];
+    silent?: boolean;
+    /**
+     * Configures how taxes are calculated on products.
+     */
+    taxOptions?: TaxOptions;
 }