浏览代码

renamed extension point in the frontend

Torkel Ödegaard 7 年之前
父节点
当前提交
c1fd4265a9
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      .gitignore
  2. 4 4
      public/app/app.ts

+ 1 - 1
.gitignore

@@ -54,7 +54,7 @@ profile.cov
 /pkg/cmd/grafana-server/grafana-server
 /pkg/cmd/grafana-server/debug
 /pkg/extensions
-/public/app/enterprise
+/public/app/extensions
 debug.test
 /examples/*/dist
 /packaging/**/*.rpm

+ 4 - 4
public/app/app.ts

@@ -29,10 +29,10 @@ _.move = (array, fromIndex, toIndex) => {
 import { coreModule, registerAngularDirectives } from './core/core';
 import { setupAngularRoutes } from './routes/routes';
 
-// import enterprise frontend
-const enterpriseIndex = (require as any).context('.', true, /enterprise\/index.ts/);
-enterpriseIndex.keys().forEach(key => {
-  enterpriseIndex(key);
+// import symlinked extensions
+const extensionsIndex = (require as any).context('.', true, /extensions\/index.ts/);
+extensionsIndex.keys().forEach(key => {
+  extensionsIndex(key);
 });
 
 export class GrafanaApp {