Skip to content
Snippets Groups Projects
Select Git revision
  • 6f06b3a5edfd09f16af45109e7c760394f1dede9
  • master default protected
  • dev protected
  • replication_test
  • release-1.10 protected
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • 485-fixity-checks
  • 530-various-schema-problems-with-subsets
  • release-1.7 protected
  • v1.10.2 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
  • v1.9.2-rc0 protected
41 results

unitidentityexception.py

Blame
  • Raw.vue 1.59 KiB
    <template>
      <div>
        <editor
          v-model="content"
          :class="{ 'theme-dark': is_dark }"
          :value="value || content"
          lang="sql"
          theme="xcode"
          width="600"
          :height="height"
          @init="editorInit" />
      </div>
    </template>
    
    <script>
    export default {
      components: {
        editor: require('vue2-ace-editor')
      },
      props: {
        value: {
          type: String,
          default: () => ''
        },
        disabled: {
          type: Boolean,
          default: () => false
        }
      },
      data () {
        return {
          content: this.value
        }
      },
      computed: {
        height () {
          return 150
          // if (!this.disabled) { return 150 }
          // const numLines = this.value.split('\n').length
          // return numLines * 25
        },
        is_dark () {
          return this.$vuetify.theme.dark
        }
      },
      watch: {
        content (v) {
          this.$emit('input', v)
        },
        value (v) {
          this.content = v
        }
      },
      mounted () {
      },
      methods: {
        editorInit (editor) {
          editor.setOptions({
            fontSize: '12pt',
            readOnly: this.disabled,
            behavioursEnabled: !this.disabled
          })
          require('brace/ext/language_tools') // language extension prerequsite...
          require('brace/mode/html')
          require('brace/mode/sql') // language
          require('brace/mode/less')
          require('brace/theme/xcode')
          require('brace/snippets/sql') // snippet
          editor.renderer.setOptions({
            selectionStyle: 'text',
            showGutter: false
          })
          this.$emit('input', this.content)
        }
      }
    }
    </script>
    
    <style scoped>
    .theme-dark {
      background: none;
      color: white;
    }
    </style>