mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
revert base folder structure to src/*
This commit is contained in:
parent
afa8864452
commit
81c2a75d73
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,4 +7,4 @@ tmp/
|
|||||||
static/build/client/
|
static/build/client/
|
||||||
binaries/client/
|
binaries/client/
|
||||||
binaries/server/
|
binaries/server/
|
||||||
locales/**/**.js
|
src/locales/**/**.js
|
||||||
|
|||||||
18
.linguirc
18
.linguirc
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"locales": ["en", "ru"],
|
|
||||||
"sourceLocale": "en",
|
|
||||||
"fallbackLocale": "en",
|
|
||||||
"compileNamespace": "cjs",
|
|
||||||
"format": "po",
|
|
||||||
"extractBabelOptions": {
|
|
||||||
"plugins": [
|
|
||||||
"@babel/plugin-syntax-dynamic-import"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"catalogs": [
|
|
||||||
{
|
|
||||||
"path": "./locales/{locale}/messages",
|
|
||||||
"include": "./renderer"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
30
package.json
30
package.json
@ -3,7 +3,7 @@
|
|||||||
"productName": "Lens",
|
"productName": "Lens",
|
||||||
"description": "Lens - The Kubernetes IDE",
|
"description": "Lens - The Kubernetes IDE",
|
||||||
"version": "3.5.0-beta.1",
|
"version": "3.5.0-beta.1",
|
||||||
"main": "main/index.ts",
|
"main": "src/main",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "electron-webpack dev",
|
"dev": "electron-webpack dev",
|
||||||
"compile": "yarn download-bins && yarn i18n:compile && electron-webpack compile",
|
"compile": "yarn download-bins && yarn i18n:compile && electron-webpack compile",
|
||||||
@ -38,14 +38,32 @@
|
|||||||
"commonSourceDirectory": "./common",
|
"commonSourceDirectory": "./common",
|
||||||
"staticSourceDirectory": "./static",
|
"staticSourceDirectory": "./static",
|
||||||
"main": {
|
"main": {
|
||||||
"sourceDirectory": "./main"
|
"sourceDirectory": "./src/main"
|
||||||
},
|
},
|
||||||
"renderer": {
|
"renderer": {
|
||||||
"sourceDirectory": "./renderer",
|
"sourceDirectory": "./src/renderer",
|
||||||
"template": "./renderer/template.html",
|
"template": "./src/renderer/template.html",
|
||||||
"webpackConfig": "./renderer/webpack.renderer.js"
|
"webpackConfig": "./src/renderer/webpack.renderer.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"lingui": {
|
||||||
|
"locales": ["en", "ru"],
|
||||||
|
"sourceLocale": "en",
|
||||||
|
"fallbackLocale": "en",
|
||||||
|
"compileNamespace": "cjs",
|
||||||
|
"format": "po",
|
||||||
|
"extractBabelOptions": {
|
||||||
|
"plugins": [
|
||||||
|
"@babel/plugin-syntax-dynamic-import"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"catalogs": [
|
||||||
|
{
|
||||||
|
"path": "./src/locales/{locale}/messages",
|
||||||
|
"include": "./src/renderer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"collectCoverage": true,
|
"collectCoverage": true,
|
||||||
"testRegex": "spec/.*_(spec)\\.[jt]sx?$",
|
"testRegex": "spec/.*_(spec)\\.[jt]sx?$",
|
||||||
@ -59,7 +77,7 @@
|
|||||||
"afterSign": "build/notarize.js",
|
"afterSign": "build/notarize.js",
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "(features|static|locales)/",
|
"from": "src/(features|static|locales)",
|
||||||
"filter": "**/*"
|
"filter": "**/*"
|
||||||
},
|
},
|
||||||
"LICENSE"
|
"LICENSE"
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
@import "~typeface-roboto/index.css";
|
|
||||||
@import "~material-design-icons/iconfont/material-icons.css";
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import { bundledKubectl, Kubectl } from "../../../main/kubectl";
|
import { bundledKubectl, Kubectl } from "../../../main/kubectl";
|
||||||
|
|
||||||
jest.mock("electron")
|
jest.mock("electron")
|
||||||
jest.mock("../../../src/common/user-store")
|
jest.mock("../../../common/user-store")
|
||||||
|
|
||||||
describe("kubectlVersion", () => {
|
describe("kubectlVersion", () => {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import request from "request"
|
import request from "request"
|
||||||
import { userStore } from "../common/user-store"
|
import { userStore } from "./user-store"
|
||||||
|
|
||||||
export function globalRequestOpts(requestOpts: request.Options ) {
|
export function globalRequestOpts(requestOpts: request.Options ) {
|
||||||
const userPrefs = userStore.getPreferences()
|
const userPrefs = userStore.getPreferences()
|
||||||
@ -1,6 +1,6 @@
|
|||||||
import ua from "universal-analytics"
|
import ua from "universal-analytics"
|
||||||
import { machineIdSync } from "node-machine-id"
|
import { machineIdSync } from "node-machine-id"
|
||||||
import { userStore } from "../common/user-store"
|
import { userStore } from "./user-store"
|
||||||
|
|
||||||
const GA_ID = "UA-159377374-1"
|
const GA_ID = "UA-159377374-1"
|
||||||
|
|
||||||
@ -1,9 +1,10 @@
|
|||||||
|
import packageInfo from "../../../package.json"
|
||||||
import { app, remote } from "electron"
|
import { app, remote } from "electron"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @returns app version correctly regardless of dev/prod mode and main/renderer differences
|
* @returns app version correctly regardless of dev/prod mode and main/renderer differences
|
||||||
*/
|
*/
|
||||||
export function getAppVersion(): string {
|
export function getAppVersion(): string {
|
||||||
return (app || remote.app).getVersion();
|
const version = (app || remote.app).getVersion();
|
||||||
|
return version || packageInfo.version;
|
||||||
}
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
// App's common paths/flags/etc. for any process
|
// App's common paths/flags/etc. for any process
|
||||||
import packageInfo from "../package.json"
|
import packageInfo from "../../package.json"
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
const { main, renderer } = packageInfo.electronWebpack;
|
const { main, renderer } = packageInfo.electronWebpack;
|
||||||
@ -1,4 +1,4 @@
|
|||||||
import packageInfo from "../package.json"
|
import packageInfo from "../../package.json"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { LensBinary, LensBinaryOpts } from "./lens-binary"
|
import { LensBinary, LensBinaryOpts } from "./lens-binary"
|
||||||
import { isProduction } from "../common/vars";
|
import { isProduction } from "../common/vars";
|
||||||
@ -1,4 +1,4 @@
|
|||||||
import packageInfo from "../package.json"
|
import packageInfo from "../../package.json"
|
||||||
import { app, remote } from "electron"
|
import { app, remote } from "electron"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
@import 'custom';
|
@import 'custom';
|
||||||
@import 'fonts';
|
@import 'fonts';
|
||||||
@import '~bootstrap/scss/bootstrap';
|
@import '../../../../../node_modules/bootstrap/scss/bootstrap';
|
||||||
@import '~bootstrap-vue/src/index.scss';
|
@import '../../../../../node_modules/bootstrap-vue/src/index';
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
2
src/renderer/_vue/assets/css/fonts.scss
Normal file
2
src/renderer/_vue/assets/css/fonts.scss
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@import "../../../../../node_modules/typeface-roboto/index.css";
|
||||||
|
@import "../../../../../node_modules/material-design-icons/iconfont/material-icons.css";
|
||||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 242 KiB After Width: | Height: | Size: 242 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user