Skip to content

Commit

Permalink
feat: test scriptFile icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mumiao committed Nov 26, 2020
1 parent 78c25f9 commit 4232028
Show file tree
Hide file tree
Showing 1,015 changed files with 1,183 additions and 13 deletions.
10 changes: 4 additions & 6 deletions build/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ module.exports = {
path: path.resolve(__dirname, '../dist'),
},
module: {
rules: [
{
rules: [{
test: /\.(js|jsx|tsx|ts)$/,
exclude: /node_modules/,
use: [
{
use: [{
loader: require.resolve('ts-loader'),
options: {
transpileOnly: true,
Expand All @@ -50,6 +48,6 @@ module.exports = {
}),
new webpack.DefinePlugin({
__DEVELOPMENT__: true,
}),
})
],
};
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"dependencies": {
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.9",
"copy-webpack-plugin": "^6.3.2",
"dt-utils": "^1.0.1",
"immutability-helper": "^3.1.1",
"loadsh": "^0.0.4",
Expand Down
2 changes: 1 addition & 1 deletion src/components/fileIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from 'vscode-icons-js';
import { prefixClaName, classNames } from 'mo/common/className';

const ICON_BASE_PATH = '/assets/fileIcons/';
const ICON_BASE_PATH = './src/static/fileIcons/';

export interface Props {
fileName: string;
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/search/searchPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class SearchPane extends React.Component<
const tabData = {
activeTab: 0,
id: id,
name: `test-tab${id.toFixed(2)}`,
name: `editor.js`,
modified: true,
value: 'hello javascript',
};
Expand Down
1 change: 1 addition & 0 deletions src/static/fileIcons/default_file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/default_folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/default_folder_opened.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/default_root_folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/default_root_folder_opened.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/file_type_access.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/file_type_access2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/file_type_actionscript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/file_type_actionscript2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/file_type_ada.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/file_type_advpl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/file_type_affectscript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/fileIcons/file_type_affinitydesigner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4232028

Please sign in to comment.