mirror of
				https://github.com/simon987/sist2.git
				synced 2025-11-04 01:36:51 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "e82a388d1edf04e7f3d070141d0b1197a603288f" and "750a392a61012a6a03e6fdaa27e542fa41d02404" have entirely different histories.
		
	
	
		
			e82a388d1e
			...
			750a392a61
		
	
		
@ -1,58 +0,0 @@
 | 
				
			|||||||
{
 | 
					 | 
				
			||||||
  "index": {
 | 
					 | 
				
			||||||
    "refresh_interval": "30s",
 | 
					 | 
				
			||||||
    "codec": "best_compression",
 | 
					 | 
				
			||||||
    "number_of_replicas": 0
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  "analysis": {
 | 
					 | 
				
			||||||
    "tokenizer": {
 | 
					 | 
				
			||||||
      "path_tokenizer": {
 | 
					 | 
				
			||||||
        "type": "path_hierarchy",
 | 
					 | 
				
			||||||
        "delimiter": "/"
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "tag_tokenizer": {
 | 
					 | 
				
			||||||
        "type": "path_hierarchy",
 | 
					 | 
				
			||||||
        "delimiter": "."
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "my_nGram_tokenizer": {
 | 
					 | 
				
			||||||
        "type": "nGram",
 | 
					 | 
				
			||||||
        "min_gram": 3,
 | 
					 | 
				
			||||||
        "max_gram": 3
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "analyzer": {
 | 
					 | 
				
			||||||
      "path_analyzer": {
 | 
					 | 
				
			||||||
        "tokenizer": "path_tokenizer",
 | 
					 | 
				
			||||||
        "filter": [
 | 
					 | 
				
			||||||
          "lowercase"
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "tag_analyzer": {
 | 
					 | 
				
			||||||
        "tokenizer": "tag_tokenizer",
 | 
					 | 
				
			||||||
        "filter": [
 | 
					 | 
				
			||||||
          "lowercase"
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "case_insensitive_kw_analyzer": {
 | 
					 | 
				
			||||||
        "tokenizer": "keyword",
 | 
					 | 
				
			||||||
        "filter": [
 | 
					 | 
				
			||||||
          "lowercase"
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "my_nGram": {
 | 
					 | 
				
			||||||
        "tokenizer": "my_nGram_tokenizer",
 | 
					 | 
				
			||||||
        "filter": [
 | 
					 | 
				
			||||||
          "lowercase",
 | 
					 | 
				
			||||||
          "asciifolding"
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      "content_analyzer": {
 | 
					 | 
				
			||||||
        "tokenizer": "standard",
 | 
					 | 
				
			||||||
        "filter": [
 | 
					 | 
				
			||||||
          "lowercase",
 | 
					 | 
				
			||||||
          "asciifolding"
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										2
									
								
								sist2-vue/dist/css/index.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								sist2-vue/dist/css/index.css
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								sist2-vue/dist/js/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								sist2-vue/dist/js/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -51,7 +51,6 @@ export interface EsHit {
 | 
				
			|||||||
        duration: number
 | 
					        duration: number
 | 
				
			||||||
        tag: string[]
 | 
					        tag: string[]
 | 
				
			||||||
        checksum: string
 | 
					        checksum: string
 | 
				
			||||||
        thumbnail: string
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    _props: {
 | 
					    _props: {
 | 
				
			||||||
        isSubDocument: boolean
 | 
					        isSubDocument: boolean
 | 
				
			||||||
@ -62,8 +61,6 @@ export interface EsHit {
 | 
				
			|||||||
        isPlayableImage: boolean
 | 
					        isPlayableImage: boolean
 | 
				
			||||||
        isAudio: boolean
 | 
					        isAudio: boolean
 | 
				
			||||||
        hasThumbnail: boolean
 | 
					        hasThumbnail: boolean
 | 
				
			||||||
        tnW: number
 | 
					 | 
				
			||||||
        tnH: number
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    highlight: {
 | 
					    highlight: {
 | 
				
			||||||
        name: string[] | undefined,
 | 
					        name: string[] | undefined,
 | 
				
			||||||
@ -134,8 +131,6 @@ class Sist2Api {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if ("thumbnail" in hit._source) {
 | 
					        if ("thumbnail" in hit._source) {
 | 
				
			||||||
            hit._props.hasThumbnail = true;
 | 
					            hit._props.hasThumbnail = true;
 | 
				
			||||||
            hit._props.tnW = Number(hit._source.thumbnail.split(",")[0]);
 | 
					 | 
				
			||||||
            hit._props.tnH = Number(hit._source.thumbnail.split(",")[1]);
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        switch (mimeCategory) {
 | 
					        switch (mimeCategory) {
 | 
				
			||||||
 | 
				
			|||||||
@ -15,15 +15,11 @@
 | 
				
			|||||||
          <span class="badge badge-resolution">{{ humanTime(doc._source.duration) }}</span>
 | 
					          <span class="badge badge-resolution">{{ humanTime(doc._source.duration) }}</span>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <div
 | 
					        <div v-if="doc._props.isImage && !hover" class="card-img-overlay" :class="{'small-badge': smallBadge}">
 | 
				
			||||||
            v-if="doc._props.isImage && !hover && doc._props.tnW / doc._props.tnH < 5"
 | 
					 | 
				
			||||||
            class="card-img-overlay"
 | 
					 | 
				
			||||||
            :class="{'small-badge': smallBadge}">
 | 
					 | 
				
			||||||
          <span class="badge badge-resolution">{{ `${doc._source.width}x${doc._source.height}` }}</span>
 | 
					          <span class="badge badge-resolution">{{ `${doc._source.width}x${doc._source.height}` }}</span>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <div v-if="(doc._props.isVideo || doc._props.isGif) && doc._source.duration > 0 && !hover"
 | 
					        <div v-if="(doc._props.isVideo || doc._props.isGif) && doc._source.duration > 0 && !hover" class="card-img-overlay"
 | 
				
			||||||
             class="card-img-overlay"
 | 
					 | 
				
			||||||
             :class="{'small-badge': smallBadge}">
 | 
					             :class="{'small-badge': smallBadge}">
 | 
				
			||||||
          <span class="badge badge-resolution">{{ humanTime(doc._source.duration) }}</span>
 | 
					          <span class="badge badge-resolution">{{ humanTime(doc._source.duration) }}</span>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
@ -43,8 +39,7 @@
 | 
				
			|||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <!-- Audio player-->
 | 
					      <!-- Audio player-->
 | 
				
			||||||
      <audio v-if="doc._props.isAudio" ref="audio" preload="none" class="audio-fit fit" controls
 | 
					      <audio v-if="doc._props.isAudio" ref="audio" preload="none" class="audio-fit fit" controls :type="doc._source.mime"
 | 
				
			||||||
             :type="doc._source.mime"
 | 
					 | 
				
			||||||
             :src="`f/${doc._id}`"
 | 
					             :src="`f/${doc._id}`"
 | 
				
			||||||
             @play="onAudioPlay()"></audio>
 | 
					             @play="onAudioPlay()"></audio>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -21,9 +21,6 @@ export default {
 | 
				
			|||||||
      if (mutation.type === "setUiMimeMap") {
 | 
					      if (mutation.type === "setUiMimeMap") {
 | 
				
			||||||
        const mimeMap = mutation.payload.slice();
 | 
					        const mimeMap = mutation.payload.slice();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const elem = document.getElementById("mimeTree");
 | 
					 | 
				
			||||||
        console.log(elem);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        this.mimeTree = new InspireTree({
 | 
					        this.mimeTree = new InspireTree({
 | 
				
			||||||
          selection: {
 | 
					          selection: {
 | 
				
			||||||
            mode: 'checkbox'
 | 
					            mode: 'checkbox'
 | 
				
			||||||
 | 
				
			|||||||
@ -31,7 +31,7 @@
 | 
				
			|||||||
          </b-row>
 | 
					          </b-row>
 | 
				
			||||||
        </b-col>
 | 
					        </b-col>
 | 
				
			||||||
        <b-col>
 | 
					        <b-col>
 | 
				
			||||||
          <b-tabs justified>
 | 
					          <b-tabs>
 | 
				
			||||||
            <b-tab :title="$t('mimeTypes')">
 | 
					            <b-tab :title="$t('mimeTypes')">
 | 
				
			||||||
              <MimePicker></MimePicker>
 | 
					              <MimePicker></MimePicker>
 | 
				
			||||||
            </b-tab>
 | 
					            </b-tab>
 | 
				
			||||||
@ -43,13 +43,13 @@
 | 
				
			|||||||
      </b-row>
 | 
					      </b-row>
 | 
				
			||||||
    </b-card>
 | 
					    </b-card>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div v-show="docs.length === 0 && !uiLoading">
 | 
					    <template v-if="docs.length === 0 && !uiLoading">
 | 
				
			||||||
      <Preloader v-if="searchBusy" class="mt-3"></Preloader>
 | 
					      <Preloader v-if="searchBusy" class="mt-3"></Preloader>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <ResultsCard></ResultsCard>
 | 
					      <ResultsCard></ResultsCard>
 | 
				
			||||||
    </div>
 | 
					    </template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div v-if="docs.length > 0">
 | 
					    <div v-else>
 | 
				
			||||||
      <ResultsCard></ResultsCard>
 | 
					      <ResultsCard></ResultsCard>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <DocCardWall v-if="optDisplay==='grid'" :docs="docs" :append="appendFunc"></DocCardWall>
 | 
					      <DocCardWall v-if="optDisplay==='grid'" :docs="docs" :append="appendFunc"></DocCardWall>
 | 
				
			||||||
@ -113,6 +113,10 @@ export default Vue.extend({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    }, 350, {leading: false});
 | 
					    }, 350, {leading: false});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Sist2Api.getMimeTypes().then(mimeMap => {
 | 
				
			||||||
 | 
					      this.$store.commit("setUiMimeMap", mimeMap);
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.$store.dispatch("loadFromArgs", this.$route).then(() => {
 | 
					    this.$store.dispatch("loadFromArgs", this.$route).then(() => {
 | 
				
			||||||
      this.$store.subscribe(() => this.$store.dispatch("updateArgs", this.$router));
 | 
					      this.$store.subscribe(() => this.$store.dispatch("updateArgs", this.$router));
 | 
				
			||||||
      this.$store.subscribe((mutation) => {
 | 
					      this.$store.subscribe((mutation) => {
 | 
				
			||||||
@ -138,13 +142,9 @@ export default Vue.extend({
 | 
				
			|||||||
      sist2.getSist2Info().then(data => {
 | 
					      sist2.getSist2Info().then(data => {
 | 
				
			||||||
        this.setSist2Info(data);
 | 
					        this.setSist2Info(data);
 | 
				
			||||||
        this.setIndices(data.indices);
 | 
					        this.setIndices(data.indices);
 | 
				
			||||||
 | 
					        this.uiLoading = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Sist2Api.getMimeTypes().then(mimeMap => {
 | 
					        this.search(true);
 | 
				
			||||||
          this.$store.commit("setUiMimeMap", mimeMap);
 | 
					 | 
				
			||||||
          this.uiLoading = false;
 | 
					 | 
				
			||||||
          this.search(true);
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      }).catch(() => {
 | 
					      }).catch(() => {
 | 
				
			||||||
        this.showErrorToast();
 | 
					        this.showErrorToast();
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								src/web/static_generated.c
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								src/web/static_generated.c
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user