ExtJs-readme.md翻译

# firstApp

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.
   app.json - 描述这个应用 哪些文件 被编译 和 加载
 - `"app.js"` - The file that launches the application. This is primarily used to
   launch an instance of the `MyApp.Application` class.
   app.js - 加载应用的文件。 主要用来加载MyApp.Application 类
 - `"index.html"` - The default web page for this application. This can be customized
   in `"app.json"`.
   index.html - 应用中默认的web页面,这个可以在app.json中自定义
 - `"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.
   build.xml - 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 - 默认隐藏的文件包括这个应用生成的脚本和配置文件。这个文件需要在应用被编译的时候使用,但是它的内容在大多情况下都不需要被编辑,
   这个文件的内容可以用sencha app upgrade的时候更新

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.
   build - 这个文件夹包括编译的输入文件。生成的css文件、合并的资源、级联的js文件都会存储在这里
 - `"bootstrap.*"` - These files are generated by the build and watch commands to
   enable the application to load in "development mode".
   bootstrap.* 这个文件在编译的时候生成,观察命令被加载到开发模式中

# 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.

See the [Sass readme](sass/Readme.md) for details on the "sass" folder.

## 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:
overrides 覆盖文件夹的内容将被自动包含编译进来。这些不应该在代码中被要求或使用中被明确提及,overrides是为了这样的覆盖,
    Ext.define('firstApp.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.Bar,则Ext.foo.Bar会被自动添加。这就简化了应用打补丁,或者扩展到其它类的操作
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值