Browse Source

UI Unifued file naming

tags/v1.1.0
xiayifan 5 years ago
parent
commit
0e76f706d7
19 changed files with 25 additions and 37 deletions
  1. +0
    -0
      mindinsight/ui/src/components/debugger-grid-table-simple.vue
  2. +0
    -0
      mindinsight/ui/src/components/grid-table-simple.vue
  3. +0
    -0
      mindinsight/ui/src/components/histogram-unit.vue
  4. +0
    -0
      mindinsight/ui/src/components/multiselect-group.vue
  5. +5
    -0
      mindinsight/ui/src/mixins/auto-update.vue
  6. +0
    -0
      mindinsight/ui/src/mixins/common-graph.vue
  7. +0
    -0
      mindinsight/ui/src/mixins/debugger-mixin.vue
  8. +0
    -0
      mindinsight/ui/src/mixins/model-data.vue
  9. +0
    -0
      mindinsight/ui/src/mixins/small-map.vue
  10. +3
    -3
      mindinsight/ui/src/views/debugger/debugger.vue
  11. +0
    -1
      mindinsight/ui/src/views/explain/xai-metric.vue
  12. +2
    -2
      mindinsight/ui/src/views/train-manage/compare-plate.vue
  13. +2
    -2
      mindinsight/ui/src/views/train-manage/graph.vue
  14. +2
    -7
      mindinsight/ui/src/views/train-manage/histogram.vue
  15. +3
    -9
      mindinsight/ui/src/views/train-manage/image.vue
  16. +1
    -1
      mindinsight/ui/src/views/train-manage/model-traceback.vue
  17. +2
    -2
      mindinsight/ui/src/views/train-manage/scalar.vue
  18. +4
    -9
      mindinsight/ui/src/views/train-manage/tensor.vue
  19. +1
    -1
      mindinsight/ui/src/views/train-manage/training-dashboard.vue

mindinsight/ui/src/components/debuggerGridTableSimple.vue → mindinsight/ui/src/components/debugger-grid-table-simple.vue View File


mindinsight/ui/src/components/gridTableSimple.vue → mindinsight/ui/src/components/grid-table-simple.vue View File


mindinsight/ui/src/components/histogramUnit.vue → mindinsight/ui/src/components/histogram-unit.vue View File


mindinsight/ui/src/components/multiselectGroup.vue → mindinsight/ui/src/components/multiselect-group.vue View File


mindinsight/ui/src/mixins/autoUpdate.vue → mindinsight/ui/src/mixins/auto-update.vue View File

@@ -114,6 +114,11 @@ export default {
clearInterval(this.autoUpdateTimer); clearInterval(this.autoUpdateTimer);
this.autoUpdateTimer = null; this.autoUpdateTimer = null;
} }
// Stop refreshing
if (this.isReloading) {
this.$store.commit('setIsReload', false);
this.isReloading = false;
}
}, },
}; };
</script> </script>

mindinsight/ui/src/mixins/commonGraph.vue → mindinsight/ui/src/mixins/common-graph.vue View File


mindinsight/ui/src/mixins/debuggerMixin.vue → mindinsight/ui/src/mixins/debugger-mixin.vue View File


mindinsight/ui/src/mixins/modelData.vue → mindinsight/ui/src/mixins/model-data.vue View File


mindinsight/ui/src/mixins/smallMap.vue → mindinsight/ui/src/mixins/small-map.vue View File


+ 3
- 3
mindinsight/ui/src/views/debugger/debugger.vue View File

@@ -621,11 +621,11 @@ limitations under the License.
<script> <script>
import {select, selectAll, zoom, dispatch} from 'd3'; import {select, selectAll, zoom, dispatch} from 'd3';
import 'd3-graphviz'; import 'd3-graphviz';
import debuggerGridTable from '../../components/debuggerGridTableSimple.vue';
import debuggerGridTable from '../../components/debugger-grid-table-simple.vue';
const d3 = {select, selectAll, zoom, dispatch}; const d3 = {select, selectAll, zoom, dispatch};
import RequestService from '@/services/request-service'; import RequestService from '@/services/request-service';
import commonGraph from '../../mixins/commonGraph.vue';
import debuggerMixin from '../../mixins/debuggerMixin.vue';
import commonGraph from '../../mixins/common-graph.vue';
import debuggerMixin from '../../mixins/debugger-mixin.vue';
import tree from '../../components/tree.vue'; import tree from '../../components/tree.vue';


export default { export default {


+ 0
- 1
mindinsight/ui/src/views/explain/xai-metric.vue View File

@@ -331,7 +331,6 @@ export default {
cellHover(row, column) { cellHover(row, column) {
this.property = column.property; this.property = column.property;
}, },
/** /**
* The logic execute when table cell mouse leave * The logic execute when table cell mouse leave
*/ */


+ 2
- 2
mindinsight/ui/src/views/train-manage/compare-plate.vue View File

@@ -134,8 +134,8 @@ limitations under the License.
import echarts from 'echarts'; import echarts from 'echarts';
import RequestService from '../../services/request-service'; import RequestService from '../../services/request-service';
import CommonProperty from '../../common/common-property'; import CommonProperty from '../../common/common-property';
import multiSelectGroupComponents from '../../components/multiselectGroup.vue';
import autoUpdate from '../../mixins/autoUpdate.vue';
import multiSelectGroupComponents from '../../components/multiselect-group.vue';
import autoUpdate from '../../mixins/auto-update.vue';


export default { export default {
mixins: [autoUpdate], mixins: [autoUpdate],


+ 2
- 2
mindinsight/ui/src/views/train-manage/graph.vue View File

@@ -487,8 +487,8 @@ import RequestService from '@/services/request-service';
import {select, selectAll, zoom} from 'd3'; import {select, selectAll, zoom} from 'd3';
import 'd3-graphviz'; import 'd3-graphviz';
const d3 = {select, selectAll, zoom}; const d3 = {select, selectAll, zoom};
import commonGraph from '../../mixins/commonGraph.vue';
import smallMap from '../../mixins/smallMap.vue';
import commonGraph from '../../mixins/common-graph.vue';
import smallMap from '../../mixins/small-map.vue';


export default { export default {
mixins: [commonGraph, smallMap], mixins: [commonGraph, smallMap],


+ 2
- 7
mindinsight/ui/src/views/train-manage/histogram.vue View File

@@ -122,12 +122,12 @@ limitations under the License.
</template> </template>


<script> <script>
import multiselectGroupComponents from '../../components/multiselectGroup.vue';
import multiselectGroupComponents from '../../components/multiselect-group.vue';
import RequestService from '../../services/request-service'; import RequestService from '../../services/request-service';
import CommonProperty from '../../common/common-property'; import CommonProperty from '../../common/common-property';
import echarts from 'echarts'; import echarts from 'echarts';
import {format, precisionRound} from 'd3'; import {format, precisionRound} from 'd3';
import autoUpdate from '../../mixins/autoUpdate.vue';
import autoUpdate from '../../mixins/auto-update.vue';
const d3 = {format, precisionRound}; const d3 = {format, precisionRound};
export default { export default {
mixins: [autoUpdate], mixins: [autoUpdate],
@@ -166,11 +166,6 @@ export default {
this.clearZrData(item); this.clearZrData(item);
}); });
} }
// Stop refreshing
if (this.isReloading) {
this.$store.commit('setIsReload', false);
this.isReloading = false;
}
if (this.changeAxisTimer) { if (this.changeAxisTimer) {
clearTimeout(this.changeAxisTimer); clearTimeout(this.changeAxisTimer);
this.changeAxisTimer = null; this.changeAxisTimer = null;


+ 3
- 9
mindinsight/ui/src/views/train-manage/image.vue View File

@@ -141,10 +141,10 @@ limitations under the License.
</template> </template>


<script> <script>
import multiselectGroupComponents from '../../components/multiselectGroup.vue';
import multiselectGroupComponents from '../../components/multiselect-group.vue';
import RequestService from '../../services/request-service'; import RequestService from '../../services/request-service';
import {basePath} from '@/services/fetcher'; import {basePath} from '@/services/fetcher';
import autoUpdate from '../../mixins/autoUpdate.vue';
import autoUpdate from '../../mixins/auto-update.vue';
export default { export default {
mixins: [autoUpdate], mixins: [autoUpdate],
data() { data() {
@@ -168,13 +168,7 @@ export default {
}, },
computed: {}, computed: {},
watch: {}, watch: {},
destroyed() {
// Stop refreshing
if (this.isReloading) {
this.$store.commit('setIsReload', false);
this.isReloading = false;
}
},
destroyed() {},
mounted() { mounted() {
if (!this.$route.query || !this.$route.query.train_id) { if (!this.$route.query || !this.$route.query.train_id) {
this.$message.error(this.$t('trainingDashboard.invalidId')); this.$message.error(this.$t('trainingDashboard.invalidId'));


+ 1
- 1
mindinsight/ui/src/views/train-manage/model-traceback.vue View File

@@ -565,7 +565,7 @@ import RequestService from '../../services/request-service';
import CommonProperty from '@/common/common-property.js'; import CommonProperty from '@/common/common-property.js';
import Echarts from 'echarts'; import Echarts from 'echarts';
import Scatter from '@/components/scatter'; import Scatter from '@/components/scatter';
import modelDataFun from '../../mixins/modelData.vue';
import modelDataFun from '../../mixins/model-data.vue';


export default { export default {
mixins: [modelDataFun], mixins: [modelDataFun],


+ 2
- 2
mindinsight/ui/src/views/train-manage/scalar.vue View File

@@ -268,8 +268,8 @@ import echarts from 'echarts';
import RequestService from '../../services/request-service'; import RequestService from '../../services/request-service';
import CommonProperty from '../../common/common-property'; import CommonProperty from '../../common/common-property';
import ScalarCompare from './scalar-compare'; import ScalarCompare from './scalar-compare';
import multiselectGroupComponents from '../../components/multiselectGroup.vue';
import autoUpdate from '../../mixins/autoUpdate.vue';
import multiselectGroupComponents from '../../components/multiselect-group.vue';
import autoUpdate from '../../mixins/auto-update.vue';
import threshold from '../../mixins/threshold.vue'; import threshold from '../../mixins/threshold.vue';


export default { export default {


+ 4
- 9
mindinsight/ui/src/views/train-manage/tensor.vue View File

@@ -181,11 +181,11 @@ limitations under the License.
</template> </template>


<script> <script>
import multiselectGroupComponents from '../../components/multiselectGroup.vue';
import gridTableComponents from '../../components/gridTableSimple';
import histogramUntil from '../../components/histogramUnit';
import multiselectGroupComponents from '../../components/multiselect-group.vue';
import gridTableComponents from '../../components/grid-table-simple';
import histogramUntil from '../../components/histogram-unit';
import RequestService from '../../services/request-service'; import RequestService from '../../services/request-service';
import autoUpdate from '../../mixins/autoUpdate.vue';
import autoUpdate from '../../mixins/auto-update.vue';
export default { export default {
mixins: [autoUpdate], mixins: [autoUpdate],
data() { data() {
@@ -220,11 +220,6 @@ export default {
watch: {}, watch: {},
destroyed() { destroyed() {
window.removeEventListener('resize', this.resizeCallback); window.removeEventListener('resize', this.resizeCallback);
// Stop refreshing
if (this.isReloading) {
this.$store.commit('setIsReload', false);
this.isReloading = false;
}


// Cancel the delay // Cancel the delay
this.originDataArr.forEach((sampleItem) => { this.originDataArr.forEach((sampleItem) => {


+ 1
- 1
mindinsight/ui/src/views/train-manage/training-dashboard.vue View File

@@ -267,7 +267,7 @@ import {select, selectAll, format, precisionRound} from 'd3';
import 'd3-graphviz'; import 'd3-graphviz';
const d3 = {select, selectAll, format, precisionRound}; const d3 = {select, selectAll, format, precisionRound};
import echarts from 'echarts'; import echarts from 'echarts';
import gridTableComponents from '../../components/gridTableSimple';
import gridTableComponents from '../../components/grid-table-simple';
export default { export default {
data() { data() {
return { return {


Loading…
Cancel
Save