Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
凌波微步_大先生
dashboard
提交
4ec7c60c
D
dashboard
项目概览
凌波微步_大先生
/
dashboard
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dashboard
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4ec7c60c
编写于
5月 05, 2016
作者:
S
Sebastian Florek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Refactor breadcrumbs configuration to use explicit string
上级
e68577b6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
12 deletion
+20
-12
src/app/frontend/common/components/breadcrumbs/breadcrumbs_component.js
...nd/common/components/breadcrumbs/breadcrumbs_component.js
+4
-1
src/app/frontend/replicasetlist/replicasetlist_stateconfig.js
...app/frontend/replicasetlist/replicasetlist_stateconfig.js
+3
-2
src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail_stateconfig.js
...ntrollerdetail/replicationcontrollerdetail_stateconfig.js
+5
-4
src/app/frontend/replicationcontrollerlist/replicationcontrollerlist_stateconfig.js
...oncontrollerlist/replicationcontrollerlist_stateconfig.js
+3
-2
src/app/frontend/replicationcontrollerlistdeprecated/replicationcontrollerlist_stateconfig.js
...erlistdeprecated/replicationcontrollerlist_stateconfig.js
+3
-2
src/test/frontend/common/components/breadcrumbs/breadcrumbs_component_test.js
...mmon/components/breadcrumbs/breadcrumbs_component_test.js
+2
-1
未找到文件。
src/app/frontend/common/components/breadcrumbs/breadcrumbs_component.js
浏览文件 @
4ec7c60c
...
...
@@ -14,6 +14,9 @@
import
Breadcrumb
from
'
./breadcrumb
'
;
/** Breadcrumbs config string used on state config. **/
export
const
breadcrumbsConfig
=
'
kdBreadcrumbs
'
;
/**
* @final
*/
...
...
@@ -93,7 +96,7 @@ export default class BreadcrumbsController {
let
conf
=
state
[
'
data
'
];
if
(
conf
)
{
conf
=
conf
[
'
kdBreadcrumbs
'
];
conf
=
conf
[
breadcrumbsConfig
];
}
return
conf
;
...
...
src/app/frontend/replicasetlist/replicasetlist_stateconfig.js
浏览文件 @
4ec7c60c
...
...
@@ -13,8 +13,9 @@
// limitations under the License.
import
{
actionbarViewName
}
from
'
chrome/chrome_state
'
;
import
{
stateName
,
stateUrl
}
from
'
./replicasetlist_state
'
;
import
{
breadcrumbsConfig
}
from
'
common/components/breadcrumbs/breadcrumbs_component
'
;
import
{
ReplicaSetListController
}
from
'
./replicasetlist_controller
'
;
import
{
stateName
,
stateUrl
}
from
'
./replicasetlist_state
'
;
import
ReplicaSetListActionBarController
from
'
./replicasetlistactionbar_controller
'
;
/**
...
...
@@ -30,7 +31,7 @@ export default function stateConfig($stateProvider) {
'
replicaSets
'
:
resolveReplicaSets
,
},
data
:
{
'
kdBreadcrumbs
'
:
{
[
breadcrumbsConfig
]
:
{
'
label
'
:
'
Replica Sets
'
,
},
},
...
...
src/app/frontend/replicationcontrollerdetail/replicationcontrollerdetail_stateconfig.js
浏览文件 @
4ec7c60c
...
...
@@ -12,11 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import
ReplicationControllerDetailController
from
'
./replicationcontrollerdetail_controller
'
;
import
ReplicationControllerDetailActionBarController
from
'
./replicationcontrollerdetailactionbar_controller
'
;
import
{
stateName
}
from
'
./replicationcontrollerdetail_state
'
;
import
{
actionbarViewName
}
from
'
chrome/chrome_state
'
;
import
{
breadcrumbsConfig
}
from
'
common/components/breadcrumbs/breadcrumbs_component
'
;
import
{
stateName
}
from
'
./replicationcontrollerdetail_state
'
;
import
{
stateName
as
replicationControllers
}
from
'
replicationcontrollerlistdeprecated/replicationcontrollerlist_state
'
;
import
ReplicationControllerDetailActionBarController
from
'
./replicationcontrollerdetailactionbar_controller
'
;
import
ReplicationControllerDetailController
from
'
./replicationcontrollerdetail_controller
'
;
/**
* Configures states for the service view.
...
...
@@ -34,7 +35,7 @@ export default function stateConfig($stateProvider) {
'
replicationControllerEvents
'
:
resolveReplicationControllerEvents
,
},
data
:
{
'
kdBreadcrumbs
'
:
{
[
breadcrumbsConfig
]
:
{
'
label
'
:
'
{{$stateParams.replicationController}}
'
,
'
parent
'
:
replicationControllers
,
},
...
...
src/app/frontend/replicationcontrollerlist/replicationcontrollerlist_stateconfig.js
浏览文件 @
4ec7c60c
...
...
@@ -13,8 +13,9 @@
// limitations under the License.
import
{
actionbarViewName
}
from
'
chrome/chrome_state
'
;
import
{
stateName
,
stateUrl
}
from
'
./replicationcontrollerlist_state
'
;
import
{
breadcrumbsConfig
}
from
'
common/components/breadcrumbs/breadcrumbs_component
'
;
import
{
ReplicationControllerListController
}
from
'
./replicationcontrollerlist_controller
'
;
import
{
stateName
,
stateUrl
}
from
'
./replicationcontrollerlist_state
'
;
import
ReplicationControllerListActionBarController
from
'
./replicationcontrollerlistactionbar_controller
'
;
/**
...
...
@@ -30,7 +31,7 @@ export default function stateConfig($stateProvider) {
'
replicationControllers
'
:
resolveReplicationControllers
,
},
data
:
{
'
kdBreadcrumbs
'
:
{
[
breadcrumbsConfig
]
:
{
'
label
'
:
'
Replication Controllers
'
,
},
},
...
...
src/app/frontend/replicationcontrollerlistdeprecated/replicationcontrollerlist_stateconfig.js
浏览文件 @
4ec7c60c
...
...
@@ -13,12 +13,13 @@
// limitations under the License.
import
{
actionbarViewName
}
from
'
chrome/chrome_state
'
;
import
{
breadcrumbsConfig
}
from
'
common/components/breadcrumbs/breadcrumbs_component
'
;
import
{
stateName
as
zerostate
}
from
'
./zerostate/zerostate_state
'
;
import
{
stateName
as
replicationcontrollers
}
from
'
./replicationcontrollerlist_state
'
;
import
{
stateUrl
as
replicationcontrollersUrl
}
from
'
./replicationcontrollerlist_state
'
;
import
{
StateParams
}
from
'
./zerostate/zerostate_state
'
;
import
ReplicationControllerListController
from
'
./replicationcontrollerlist_controller
'
;
import
ReplicationControllerListActionBarController
from
'
./replicationcontrollerlistactionbar_controller
'
;
import
ReplicationControllerListController
from
'
./replicationcontrollerlist_controller
'
;
import
ZeroStateController
from
'
./zerostate/zerostate_controller
'
;
/**
...
...
@@ -34,7 +35,7 @@ export default function stateConfig($stateProvider) {
'
replicationControllers
'
:
resolveReplicationControllers
,
},
data
:
{
'
kdBreadcrumbs
'
:
{
[
breadcrumbsConfig
]
:
{
'
label
'
:
'
Replication Controllers
'
,
},
},
...
...
src/test/frontend/common/components/breadcrumbs/breadcrumbs_component_test.js
浏览文件 @
4ec7c60c
...
...
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import
{
breadcrumbsConfig
}
from
'
common/components/breadcrumbs/breadcrumbs_component
'
;
import
componentsModule
from
'
common/components/components_module
'
;
describe
(
'
Breadcrumbs controller
'
,
()
=>
{
...
...
@@ -35,7 +36,7 @@ describe('Breadcrumbs controller ', () => {
return
{
name
:
stateName
,
data
:
{
kdBreadcrumbs
:
{
[
breadcrumbsConfig
]
:
{
label
:
stateLabel
,
},
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录