ExtJS 6 学习01: readme翻译

# GuaPian

This folder is primarily a container for the top-level pieces of the application.
While you can remove some files and folders that this application does not use,
be sure to read below before deciding what can be deleted and what needs to be
kept in source control.

这个文件夹主要是应用程序顶级部分的容器。
虽然您可以删除该应用程序不使用的一些文件和文件夹,
在决定删除哪些内容和需要删除哪些内容之前,一定要阅读下面的内容
保持源代码在控制之内。

The following files are all needed to build and load the application.
下面的文件是被需要的,在构建和加载整个应用的时候。

 - `"app.json"` - The application descriptor which controls how the application is
   built and loaded.
   应用程序描述符,它控制如何构建和加载应用程序。相当于后台文件中的web.xml文件。

 - `"app.js"` - The file that launches the application. This is primarily used to
   launch an instance of the `MyApp.Application` class.
  启动应用程序的文件。这主要用于启动' MyApp '的一个实例。应用程序的类。
  

 - `"index.html"` - The default web page for this application. This can be customized
   in `"app.json"`.此应用程序的默认web页面。这可以在“app.json”中定制,就类似于后台程序在web.xml中定制首页一样。


 - `"build.xml"` - The entry point for Sencha Cmd to access the generated build
   script. This file is a place where you can hook into these processes and tune
   them. See the comments in that file for more information.
    Sencha Cmd访问生成的构建脚本的入口点。在这个文件中,您可以连接到这些进程并对它们进行调优。
    有关更多信息,请参阅该文件中的注释。

 - `".sencha"` - This (typically hidden) folder contains the generated build scripts
   and configuration files for the application. This folder is required in order to
   build the application but its content should not need to be edited in most cases.
   The content of this folder is updated by "sencha app upgrade".
   这个(通常是隐藏的)文件夹包含为应用程序生成的构建脚本和配置文件。为了构建应用程序,这个文件夹是必需的,但是在大多数情况下,它的内容不应该被编辑。此文件夹内容通过“sencha app升级”进行更新。

These files can be ignored from source control as they are regenerated by the build
process.
这些文件可以从源代码控制中忽略,因为它们是由构建程序重新生成的。

 - `"build"` - This folder contain the output of the build. The generated CSS file,
   consolidated resources and concatenated JavaScript file are all stored in this
   folder.
此文件夹包含构建的输出。生成的CSS文件,合并的资源和连接的JavaScript文件都存储在这里文件夹中。

 - `"bootstrap.*"` - These files are generated by the build and watch commands to
   enable the application to load in "development mode".
   这些文件是由构建和监视命令生成的,以使应用程序能够以“开发模式”加载。

# Other Folders

## Basic Application Structure

Applications that target a single toolkit will have the following structure.
针对单个工具包的应用程序将具有以下结构。

    app/                # Contains JavaScript code
        model/          # Data model classes
        view/           # Views as well as ViewModels and ViewControllers
        store/          # Data stores
        controller/     # Global / application-level controllers

    overrides/          # JavaScript code that is automatically required

    sass/
        etc/            # Misc Sass code (all.scss is imported by default)
        var/            # Sass variable and mixin declarations
        src/            # Sass rules

    resources/          # Assets such as images, fonts, etc.   
                        # Assets[资产资源],如图像、字体 等。

See the [Sass readme](sass/Readme.md) for details on the "sass" folder.
有关“Sass”文件夹的详细信息,请参阅[Sass readme](Sass/readme.md)。

## Universal Applications
## 通用应用程序

In a Universal Application, the basic application structure above is retained but
only holds code, resources, etc. pieces that are used in both classic and modern
build profiles. The following additional directories are used to isolate code and
other files that are toolkit-specific:

    classic/                # Content specific to the classic toolkit
        src/
            model/          # Data model classes
            view/           # Views as well as ViewModels and ViewControllers
            store/          # Data stores
            controller/     # Global / application-level controllers

        overrides/          # JavaScript code that is automatically required

        sass/
            etc/            # Misc Sass code (all.scss is imported by default)
            var/            # Sass variable and mixin declarations
            src/            # Sass rules

        resources/          # Assets such as images, fonts, etc.

    modern/                 # Content specific to the modern toolkit
        src/
            model/          # Data model classes
            view/           # Views as well as ViewModels and ViewControllers
            store/          # Data stores
            controller/     # Global / application-level controllers

        overrides/          # JavaScript code that is automatically required

        sass/
            etc/            # Misc Sass code (all.scss is imported by default)
            var/            # Sass variable and mixin declarations
            src/            # Sass rules

        resources/          # Assets such as images, fonts, etc.

## Overrides

The contents of "overrides" folders are automatically required and included in
builds. These should not be explicitly mentioned in "requires" or "uses" in code.
This area is intended for overrides like these:
“覆盖”文件夹的内容被自动要求并包含在构建中。这些不应该在代码的“要求”或“使用”中明确提到。
这个区域的用途是覆盖如下:

    Ext.define('GuaPian.overrides.foo.Bar', {
        override: 'Ext.foo.Bar',
        ...
    });

Such overrides, while automatically required, will only be included if their target
class ("Ext.foo.Bar" in this case) is also required. This simplifies applying
patches or extensions to other classes.
这样的覆盖,虽然是自动需要的,但只有当它们的目标
类(“Ext.foo。在这种情况下)也是必需的。这简化了应用
其他类的补丁或扩展。
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值