reseting repo
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="myValues">
|
||||
<value>
|
||||
<list size="1">
|
||||
<item index="0" class="java.lang.String" itemvalue="&&" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
<option name="myCustomValuesEnabled" value="true" />
|
||||
</inspection_tool>
|
||||
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="myValues">
|
||||
<value>
|
||||
<list size="7">
|
||||
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
||||
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
||||
<item index="2" class="java.lang.String" itemvalue="comment" />
|
||||
<item index="3" class="java.lang.String" itemvalue="noscript" />
|
||||
<item index="4" class="java.lang.String" itemvalue="embed" />
|
||||
<item index="5" class="java.lang.String" itemvalue="script" />
|
||||
<item index="6" class="java.lang.String" itemvalue="div" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
<option name="myCustomValuesEnabled" value="true" />
|
||||
</inspection_tool>
|
||||
<inspection_tool class="XmlDuplicatedId" enabled="false" level="ERROR" enabled_by_default="false" />
|
||||
</profile>
|
||||
</component>
|
||||
Generated
+9
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptLibraryMappings">
|
||||
<file url="file://$PROJECT_DIR$" libraries="{@mdi/font}" />
|
||||
<file url="PROJECT" libraries="{@types/elasticsearch, @types/mocha}" />
|
||||
<includedPredefinedLibrary name="HTTP Response Handler" />
|
||||
<includedPredefinedLibrary name="Node.js Core" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="FLOW" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/protoguide.iml" filepath="$PROJECT_DIR$/.idea/protoguide.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="@types/elasticsearch" level="application" />
|
||||
<orderEntry type="library" name="@types/mocha" level="application" />
|
||||
<orderEntry type="library" name="@mdi/font" level="application" />
|
||||
</component>
|
||||
</module>
|
||||
Generated
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/protoguide-backend" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+554
@@ -0,0 +1,554 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="BranchesTreeState">
|
||||
<expand>
|
||||
<path>
|
||||
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
||||
</path>
|
||||
</expand>
|
||||
<select />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="f1f44dd8-138e-45df-b870-f2d26244e621" name="Default Changelist" comment="report component v1 finished">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/protoguide-backend/app.js" beforeDir="false" afterPath="$PROJECT_DIR$/protoguide-backend/app.js" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="CodeStyleSettingsInfer">
|
||||
<option name="done" value="true" />
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="JavaScript File" />
|
||||
<option value="Vue Single File Component" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="PREVIOUS_COMMIT_AUTHORS">
|
||||
<list>
|
||||
<option value="arzani <arman.arzani@uni-due.de>" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||
<map>
|
||||
<entry key="$PROJECT_DIR$" value="master" />
|
||||
</map>
|
||||
</option>
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/protoguide-backend" />
|
||||
</component>
|
||||
<component name="JsFlowSettings">
|
||||
<service-enabled>true</service-enabled>
|
||||
<exe-path />
|
||||
<other-services-enabled>true</other-services-enabled>
|
||||
<auto-save>true</auto-save>
|
||||
</component>
|
||||
<component name="ProjectCodeStyleSettingsMigration">
|
||||
<option name="version" value="1" />
|
||||
</component>
|
||||
<component name="ProjectId" id="1bcyB1p34hKWJpRWvzdrazicfTt" />
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
||||
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="aspect.path.notification.shown" value="true" />
|
||||
<property name="javascript.nodejs.core.library.configured.version" value="12.16.3" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/protoguide-frontend/public" />
|
||||
<property name="node.js.detected.package.eslint" value="true" />
|
||||
<property name="node.js.path.for.package.eslint" value="project" />
|
||||
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
||||
<property name="nodejs_interpreter_path" value="node" />
|
||||
<property name="nodejs_package_manager_path" value="npm" />
|
||||
<property name="project.structure.last.edited" value="Modules" />
|
||||
<property name="project.structure.proportion" value="0.0" />
|
||||
<property name="project.structure.side.proportion" value="0.0" />
|
||||
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
|
||||
<property name="ts.external.directory.path" value="C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.1\plugins\JavaScriptLanguage\jsLanguageServicesImpl\external" />
|
||||
</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="MoveFile.RECENT_KEYS">
|
||||
<recent name="C:\Users\arman\IdeaProjects\protoguide\protoguide-backend\routes\due" />
|
||||
<recent name="C:\Users\Armani\IdeaProjects\protoguide\protoguide-backend" />
|
||||
<recent name="C:\Users\Armani\IdeaProjects\protoguide\src\server" />
|
||||
<recent name="C:\Users\Armani\IdeaProjects\protoguide" />
|
||||
<recent name="C:\Users\Armani\IdeaProjects\protoguide\src\assets" />
|
||||
</key>
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="C:\Users\arman\IdeaProjects\protoguide\protoguide-frontend\public" />
|
||||
<recent name="C:\Users\arman\IdeaProjects\protoguide\protoguide-frontend\src\components" />
|
||||
<recent name="C:\Users\arman\IdeaProjects\protoguide\protoguide-backend\routes\dblp" />
|
||||
<recent name="C:\Users\arman\IdeaProjects\protoguide\protoguide-backend" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="f1f44dd8-138e-45df-b870-f2d26244e621" name="Default Changelist" comment="" />
|
||||
<created>1588945536274</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1588945536274</updated>
|
||||
<workItem from="1588945540013" duration="1347000" />
|
||||
<workItem from="1588946896871" duration="1977000" />
|
||||
<workItem from="1588948899260" duration="236000" />
|
||||
<workItem from="1588949145218" duration="7679000" />
|
||||
<workItem from="1589117090565" duration="2000" />
|
||||
<workItem from="1589262658188" duration="3735000" />
|
||||
<workItem from="1589290357345" duration="6313000" />
|
||||
<workItem from="1589353266461" duration="26020000" />
|
||||
<workItem from="1589531058550" duration="1277000" />
|
||||
<workItem from="1589532348980" duration="554000" />
|
||||
<workItem from="1589532921264" duration="2056000" />
|
||||
<workItem from="1589964590820" duration="1928000" />
|
||||
<workItem from="1590567495575" duration="53000" />
|
||||
<workItem from="1590567665186" duration="1117000" />
|
||||
<workItem from="1591086584989" duration="2739000" />
|
||||
<workItem from="1591173855645" duration="3179000" />
|
||||
<workItem from="1591177051647" duration="12331000" />
|
||||
<workItem from="1591192717832" duration="3905000" />
|
||||
<workItem from="1591250382460" duration="3685000" />
|
||||
<workItem from="1591254307074" duration="1534000" />
|
||||
<workItem from="1591257344912" duration="14124000" />
|
||||
<workItem from="1591357107728" duration="9596000" />
|
||||
<workItem from="1591598619495" duration="12467000" />
|
||||
<workItem from="1592302993050" duration="30000" />
|
||||
<workItem from="1592303107485" duration="19000" />
|
||||
<workItem from="1592388694665" duration="613000" />
|
||||
<workItem from="1592472939359" duration="786000" />
|
||||
<workItem from="1592483739802" duration="3151000" />
|
||||
<workItem from="1592546771827" duration="3341000" />
|
||||
<workItem from="1592562590410" duration="18416000" />
|
||||
<workItem from="1592810053569" duration="4603000" />
|
||||
<workItem from="1592995720001" duration="10192000" />
|
||||
<workItem from="1593065084223" duration="19761000" />
|
||||
<workItem from="1593155640276" duration="16973000" />
|
||||
<workItem from="1593414059905" duration="19745000" />
|
||||
<workItem from="1593501487426" duration="6803000" />
|
||||
<workItem from="1593510650160" duration="10241000" />
|
||||
<workItem from="1593586659481" duration="904000" />
|
||||
<workItem from="1593605174455" duration="6986000" />
|
||||
<workItem from="1593678462035" duration="3026000" />
|
||||
<workItem from="1593758120748" duration="16561000" />
|
||||
<workItem from="1594110622844" duration="9789000" />
|
||||
<workItem from="1594163768959" duration="15469000" />
|
||||
<workItem from="1594282865300" duration="972000" />
|
||||
<workItem from="1594283965840" duration="15757000" />
|
||||
<workItem from="1594364793701" duration="19339000" />
|
||||
<workItem from="1594628588943" duration="23327000" />
|
||||
<workItem from="1594709849855" duration="20946000" />
|
||||
<workItem from="1594798468080" duration="750000" />
|
||||
<workItem from="1594799401893" duration="534000" />
|
||||
<workItem from="1594800443341" duration="35000" />
|
||||
<workItem from="1594800566937" duration="117000" />
|
||||
<workItem from="1594800700394" duration="20241000" />
|
||||
<workItem from="1594887861785" duration="18512000" />
|
||||
<workItem from="1594961405060" duration="16437000" />
|
||||
<workItem from="1594979248495" duration="903000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="added time slider parameters to the api and elastic queries">
|
||||
<created>1591180155965</created>
|
||||
<option name="number" value="00001" />
|
||||
<option name="presentableId" value="LOCAL-00001" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1591180155965</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00002" summary="vuetify added to the frontend time-slider component added to the search page">
|
||||
<created>1591189916068</created>
|
||||
<option name="number" value="00002" />
|
||||
<option name="presentableId" value="LOCAL-00002" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1591189916068</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00003" summary="reworked time-slider view added time-slider component to dashboard page">
|
||||
<created>1591192557239</created>
|
||||
<option name="number" value="00003" />
|
||||
<option name="presentableId" value="LOCAL-00003" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1591192557239</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00004" summary="added dynamically calculated wordcloud weight words modified wordcloud component">
|
||||
<created>1591254897785</created>
|
||||
<option name="number" value="00004" />
|
||||
<option name="presentableId" value="LOCAL-00004" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1591254897785</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00005" summary="added okta authentication module added a home page component">
|
||||
<created>1591263622896</created>
|
||||
<option name="number" value="00005" />
|
||||
<option name="presentableId" value="LOCAL-00005" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1591263622896</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00006" summary="added responsiveness to the charts">
|
||||
<created>1591603446029</created>
|
||||
<option name="number" value="00006" />
|
||||
<option name="presentableId" value="LOCAL-00006" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1591603446029</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00007" summary="refined navigations elements">
|
||||
<created>1591617675413</created>
|
||||
<option name="number" value="00007" />
|
||||
<option name="presentableId" value="LOCAL-00007" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1591617675413</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00008" summary="Homepage component added">
|
||||
<created>1591618387827</created>
|
||||
<option name="number" value="00008" />
|
||||
<option name="presentableId" value="LOCAL-00008" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1591618387827</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00009" summary="added dblp database analysis to the front end dashboard added keyword analysis per year added backend functionalities to the api">
|
||||
<created>1592578457223</created>
|
||||
<option name="number" value="00009" />
|
||||
<option name="presentableId" value="LOCAL-00009" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1592578457223</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00010" summary="Added multiple Y axis to the area chart">
|
||||
<created>1592582571224</created>
|
||||
<option name="number" value="00010" />
|
||||
<option name="presentableId" value="LOCAL-00010" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1592582571224</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00011" summary="modularized the analysis and statistics components">
|
||||
<created>1593016080721</created>
|
||||
<option name="number" value="00011" />
|
||||
<option name="presentableId" value="LOCAL-00011" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593016080721</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00012" summary="introduced vuex for state management in frontend finished configurable wordcloud for ude">
|
||||
<created>1593516612527</created>
|
||||
<option name="number" value="00012" />
|
||||
<option name="presentableId" value="LOCAL-00012" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593516612527</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00013" summary="Time range defined as global logic added to refresh the page on time change">
|
||||
<created>1593522238969</created>
|
||||
<option name="number" value="00013" />
|
||||
<option name="presentableId" value="LOCAL-00013" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593522238969</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00014" summary="dblp word count endpoint added to backend keywords are now stored per route">
|
||||
<created>1593610536011</created>
|
||||
<option name="number" value="00014" />
|
||||
<option name="presentableId" value="LOCAL-00014" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593610536011</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00015" summary="minor fix in the keyword component added total_number of records to elastic query">
|
||||
<created>1593679748938</created>
|
||||
<option name="number" value="00015" />
|
||||
<option name="presentableId" value="LOCAL-00015" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593679748938</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00016" summary="finished DBLP statistics page">
|
||||
<created>1593763393715</created>
|
||||
<option name="number" value="00016" />
|
||||
<option name="presentableId" value="LOCAL-00016" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593763393715</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00017" summary="Dblp vs. UDE keyword analysis completed">
|
||||
<created>1593771781102</created>
|
||||
<option name="number" value="00017" />
|
||||
<option name="presentableId" value="LOCAL-00017" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593771781102</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00018" summary="website icon added donut chart updated">
|
||||
<created>1593774401043</created>
|
||||
<option name="number" value="00018" />
|
||||
<option name="presentableId" value="LOCAL-00018" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593774401043</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00019" summary="further refinements in the prototype">
|
||||
<created>1594209393113</created>
|
||||
<option name="number" value="00019" />
|
||||
<option name="presentableId" value="LOCAL-00019" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594209393113</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00020" summary="-added sorting to search entries -added if conditions to the barchart component -updated wordcloud component -wordcloud reacts on empty words list">
|
||||
<created>1594299693450</created>
|
||||
<option name="number" value="00020" />
|
||||
<option name="presentableId" value="LOCAL-00020" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594299693451</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00021" summary="-refined simultaneous API calls in vs. component -added AND logic to elastic queries">
|
||||
<created>1594662767789</created>
|
||||
<option name="number" value="00021" />
|
||||
<option name="presentableId" value="LOCAL-00021" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594662767789</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00022" summary="added report module dynamic loading of report keywords from backend added preliminary frontend">
|
||||
<created>1594739326339</created>
|
||||
<option name="number" value="00022" />
|
||||
<option name="presentableId" value="LOCAL-00022" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594739326339</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00023" summary="report component completed">
|
||||
<created>1594819234143</created>
|
||||
<option name="number" value="00023" />
|
||||
<option name="presentableId" value="LOCAL-00023" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594819234143</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00024" summary="refactored axios api client added style to the report">
|
||||
<created>1594822996589</created>
|
||||
<option name="number" value="00024" />
|
||||
<option name="presentableId" value="LOCAL-00024" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594822996589</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00025" summary="refactored remaining axios api client">
|
||||
<created>1594823644464</created>
|
||||
<option name="number" value="00025" />
|
||||
<option name="presentableId" value="LOCAL-00025" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594823644464</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00026" summary="Updated keywords tree added removing nodes function to the report">
|
||||
<created>1594908020733</created>
|
||||
<option name="number" value="00026" />
|
||||
<option name="presentableId" value="LOCAL-00026" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594908020733</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00027" summary="report component v1 finished">
|
||||
<created>1594978173185</created>
|
||||
<option name="number" value="00027" />
|
||||
<option name="presentableId" value="LOCAL-00027" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594978173185</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00028" summary="report component v1 finished">
|
||||
<created>1594978552369</created>
|
||||
<option name="number" value="00028" />
|
||||
<option name="presentableId" value="LOCAL-00028" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594978552369</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00029" summary="report component v1 finished">
|
||||
<created>1594979557823</created>
|
||||
<option name="number" value="00029" />
|
||||
<option name="presentableId" value="LOCAL-00029" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594979557823</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00030" summary="report component v1 finished">
|
||||
<created>1594979902605</created>
|
||||
<option name="number" value="00030" />
|
||||
<option name="presentableId" value="LOCAL-00030" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1594979902605</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="31" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="2" />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
<option name="TAB_STATES">
|
||||
<map>
|
||||
<entry key="MAIN">
|
||||
<value>
|
||||
<State />
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
<option name="oldMeFiltersMigrated" value="true" />
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="reworked time-slider view added time-slider component to dashboard page" />
|
||||
<MESSAGE value="added dynamically calculated wordcloud weight words modified wordcloud component" />
|
||||
<MESSAGE value="added okta authentication module added a home page component" />
|
||||
<MESSAGE value="added responsiveness to the charts" />
|
||||
<MESSAGE value="refined navigations elements" />
|
||||
<MESSAGE value="Homepage component added" />
|
||||
<MESSAGE value="added dblp database analysis to the front end dashboard added keyword analysis per year added backend functionalities to the api" />
|
||||
<MESSAGE value="Added multiple Y axis to the area chart" />
|
||||
<MESSAGE value="modularized the analysis and statistics components" />
|
||||
<MESSAGE value="introduced vuex for state management in frontend finished configurable wordcloud for ude" />
|
||||
<MESSAGE value="Time range defined as global logic added to refresh the page on time change" />
|
||||
<MESSAGE value="dblp word count endpoint added to backend keywords are now stored per route" />
|
||||
<MESSAGE value="minor fix in the keyword component added total_number of records to elastic query" />
|
||||
<MESSAGE value="finished DBLP statistics page" />
|
||||
<MESSAGE value="Dblp vs. UDE keyword analysis completed" />
|
||||
<MESSAGE value="website icon added donut chart updated" />
|
||||
<MESSAGE value="further refinements in the prototype" />
|
||||
<MESSAGE value="-added sorting to search entries -added if conditions to the barchart component -updated wordcloud component -wordcloud reacts on empty words list" />
|
||||
<MESSAGE value="-refined simultaneous API calls in vs. component -added AND logic to elastic queries" />
|
||||
<MESSAGE value="added report module dynamic loading of report keywords from backend added preliminary frontend" />
|
||||
<MESSAGE value="report component completed" />
|
||||
<MESSAGE value="refactored axios api client added style to the report" />
|
||||
<MESSAGE value="refactored remaining axios api client" />
|
||||
<MESSAGE value="Updated keywords tree added removing nodes function to the report" />
|
||||
<MESSAGE value="report component v1 finished" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="report component v1 finished" />
|
||||
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
||||
</component>
|
||||
<component name="WindowStateProjectService">
|
||||
<state x="803" y="433" key="#Notifications" timestamp="1591192608164">
|
||||
<screen x="0" y="0" width="1824" height="1176" />
|
||||
</state>
|
||||
<state x="803" y="433" key="#Notifications/0.0.1824.1176@0.0.1824.1176" timestamp="1591192608164" />
|
||||
<state x="845" y="387" key="#Notifications/0.0.1920.1050/1920.0.1920.1050@0.0.1920.1050" timestamp="1588946917489" />
|
||||
<state x="-1506" y="193" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1594642073501">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1506" y="193" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594642073501" />
|
||||
<state x="734" y="326" key="#com.intellij.fileTypes.FileTypeChooser" timestamp="1588949124650">
|
||||
<screen x="0" y="0" width="1920" height="1050" />
|
||||
</state>
|
||||
<state x="734" y="326" key="#com.intellij.fileTypes.FileTypeChooser/0.0.1920.1050/1920.0.1920.1050@0.0.1920.1050" timestamp="1588949124650" />
|
||||
<state x="593" y="324" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog" timestamp="1594800472668">
|
||||
<screen x="0" y="0" width="1824" height="1176" />
|
||||
</state>
|
||||
<state x="593" y="324" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.1824.1176/-1920.19.1920.1040@0.0.1824.1176" timestamp="1594800472668" />
|
||||
<state x="593" y="324" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.1824.1176@0.0.1824.1176" timestamp="1592303017026" />
|
||||
<state x="3747" y="447" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog" timestamp="1594735662905">
|
||||
<screen x="2736" y="0" width="2560" height="1400" />
|
||||
</state>
|
||||
<state x="3747" y="447" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.0.1824.1176/2736.0.2560.1400/6576.380.1920.1040@2736.0.2560.1400" timestamp="1594735662905" />
|
||||
<state x="-1426" y="107" width="1234" height="864" key="CommitChangelistDialog2" timestamp="1594979902228">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1426" y="107" width="1234" height="864" key="CommitChangelistDialog2/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594979902228" />
|
||||
<state x="3394" y="187" width="1645" height="1094" key="CommitChangelistDialog2/0.0.1824.1176/2736.0.2560.1400/6576.380.1920.1040@2736.0.2560.1400" timestamp="1594739325189" />
|
||||
<state x="469" y="157" width="1009" height="881" key="CommitChangelistDialog2/0.0.1824.1176@0.0.1824.1176" timestamp="1593774848690" />
|
||||
<state x="-1822" y="101" width="1726" height="877" key="DiffContextDialog" timestamp="1594979826301">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1822" y="101" width="1726" height="877" key="DiffContextDialog/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594979826301" />
|
||||
<state x="93" y="93" width="1639" height="991" key="DiffContextDialog/0.0.1824.1176@0.0.1824.1176" timestamp="1592562577473" />
|
||||
<state width="1781" height="327" key="GridCell.Tab.0.bottom" timestamp="1589973626320">
|
||||
<screen x="0" y="0" width="1824" height="1176" />
|
||||
</state>
|
||||
<state width="1781" height="327" key="GridCell.Tab.0.bottom/0.0.1824.1176@0.0.1824.1176" timestamp="1589973626320" />
|
||||
<state width="1781" height="327" key="GridCell.Tab.0.center" timestamp="1589973626320">
|
||||
<screen x="0" y="0" width="1824" height="1176" />
|
||||
</state>
|
||||
<state width="1781" height="327" key="GridCell.Tab.0.center/0.0.1824.1176@0.0.1824.1176" timestamp="1589973626320" />
|
||||
<state width="1781" height="327" key="GridCell.Tab.0.left" timestamp="1589973626320">
|
||||
<screen x="0" y="0" width="1824" height="1176" />
|
||||
</state>
|
||||
<state width="1781" height="327" key="GridCell.Tab.0.left/0.0.1824.1176@0.0.1824.1176" timestamp="1589973626320" />
|
||||
<state width="1781" height="327" key="GridCell.Tab.0.right" timestamp="1589973626320">
|
||||
<screen x="0" y="0" width="1824" height="1176" />
|
||||
</state>
|
||||
<state width="1781" height="327" key="GridCell.Tab.0.right/0.0.1824.1176@0.0.1824.1176" timestamp="1589973626320" />
|
||||
<state x="2460" y="267" key="IDE.errors.dialog" timestamp="1589292193632">
|
||||
<screen x="1920" y="0" width="1920" height="1050" />
|
||||
</state>
|
||||
<state x="2460" y="267" key="IDE.errors.dialog/0.0.1920.1050/1920.0.1920.1050@1920.0.1920.1050" timestamp="1589292193632" />
|
||||
<state x="-1698" y="51" key="MergeDialog" timestamp="1594979944916">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1698" y="51" key="MergeDialog/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594979944916" />
|
||||
<state x="-1322" y="300" key="MultipleFileMergeDialog" timestamp="1594979947102">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1322" y="300" key="MultipleFileMergeDialog/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594979947102" />
|
||||
<state x="3990" y="436" key="RollbackChangesDialog" timestamp="1594306444503">
|
||||
<screen x="2736" y="0" width="2560" height="1400" />
|
||||
</state>
|
||||
<state x="3990" y="436" key="RollbackChangesDialog/0.0.1824.1176/2736.0.2560.1400/6576.380.1920.1040@2736.0.2560.1400" timestamp="1594306444503" />
|
||||
<state x="315" y="182" key="SettingsEditor" timestamp="1594800893910">
|
||||
<screen x="0" y="0" width="1824" height="1176" />
|
||||
</state>
|
||||
<state x="315" y="182" key="SettingsEditor/0.0.1824.1176/-1920.19.1920.1040@0.0.1824.1176" timestamp="1594800893910" />
|
||||
<state x="315" y="182" key="SettingsEditor/0.0.1824.1176@0.0.1824.1176" timestamp="1591192702284" />
|
||||
<state x="389" y="0" key="SettingsEditor/0.0.1920.1050/1920.0.1920.1050@0.0.1920.1050" timestamp="1589290687179" />
|
||||
<state x="2309" y="0" key="SettingsEditor/0.0.1920.1050/1920.0.1920.1050@1920.0.1920.1050" timestamp="1589293955807" />
|
||||
<state x="-1388" y="303" key="Vcs.Push.Dialog.v2" timestamp="1594979916503">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1388" y="303" key="Vcs.Push.Dialog.v2/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594979916503" />
|
||||
<state x="3445" y="382" key="Vcs.Push.Dialog.v2/0.0.1824.1176/2736.0.2560.1400/6576.380.1920.1040@2736.0.2560.1400" timestamp="1594739332084" />
|
||||
<state x="505" y="321" key="Vcs.Push.Dialog.v2/0.0.1824.1176@0.0.1824.1176" timestamp="1593774404069" />
|
||||
<state x="-1828" y="111" width="1736" height="856" key="com.intellij.history.integration.ui.views.FileHistoryDialog" timestamp="1594659053706">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1828" y="111" width="1736" height="856" key="com.intellij.history.integration.ui.views.FileHistoryDialog/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594659053706" />
|
||||
<state x="-1182" y="304" key="com.intellij.openapi.vcs.changes.SpecificFilesViewDialog" timestamp="1594978395889">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1182" y="304" key="com.intellij.openapi.vcs.changes.SpecificFilesViewDialog/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594978395889" />
|
||||
<state x="701" y="322" key="com.intellij.openapi.vcs.changes.SpecificFilesViewDialog/0.0.1824.1176@0.0.1824.1176" timestamp="1593771894743" />
|
||||
<state x="-1160" y="463" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2" timestamp="1594979266155">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1160" y="463" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594979266155" />
|
||||
<state x="3749" y="598" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2/0.0.1824.1176/2736.0.2560.1400/6576.380.1920.1040@2736.0.2560.1400" timestamp="1594737258104" />
|
||||
<state x="722" y="502" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2/0.0.1824.1176@0.0.1824.1176" timestamp="1593510595602" />
|
||||
<state x="-1254" y="142" width="588" height="795" key="find.popup" timestamp="1594717059377">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1254" y="142" width="588" height="795" key="find.popup/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594717059377" />
|
||||
<state x="3624" y="165" width="784" height="1070" key="find.popup/0.0.1824.1176/2736.0.2560.1400/6576.380.1920.1040@2736.0.2560.1400" timestamp="1594210079739" />
|
||||
<state x="633" y="139" width="558" height="898" key="find.popup/0.0.1824.1176@0.0.1824.1176" timestamp="1593084606385" />
|
||||
<state x="666" y="124" width="587" height="801" key="find.popup/0.0.1920.1050/1920.0.1920.1050@0.0.1920.1050" timestamp="1588952020710" />
|
||||
<state x="2586" y="124" width="587" height="801" key="find.popup/0.0.1920.1050/1920.0.1920.1050@1920.0.1920.1050" timestamp="1589296089785" />
|
||||
<state x="-1224" y="327" key="git4idea.merge.GitMergeDialog" timestamp="1594980037831">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1224" y="327" key="git4idea.merge.GitMergeDialog/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594980037831" />
|
||||
<state x="-1248" y="327" width="609" height="424" key="git4idea.merge.GitPullDialog" timestamp="1594980052500">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1248" y="327" width="609" height="424" key="git4idea.merge.GitPullDialog/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594980052500" />
|
||||
<state x="542" y="75" key="new project wizard" timestamp="1589290657015">
|
||||
<screen x="0" y="0" width="1920" height="1050" />
|
||||
</state>
|
||||
<state x="542" y="75" key="new project wizard/0.0.1920.1050/1920.0.1920.1050@0.0.1920.1050" timestamp="1589290657015" />
|
||||
<state x="-1321" y="262" key="run.anything.popup" timestamp="1594637914088">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1321" y="262" key="run.anything.popup/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594637914088" />
|
||||
<state x="569" y="275" key="run.anything.popup/0.0.1824.1176@0.0.1824.1176" timestamp="1593765498189" />
|
||||
<state x="-1297" y="244" width="708" height="673" key="search.everywhere.popup" timestamp="1594905283788">
|
||||
<screen x="-1920" y="19" width="1920" height="1040" />
|
||||
</state>
|
||||
<state x="-1297" y="244" width="708" height="673" key="search.everywhere.popup/0.0.1824.1176/-1920.19.1920.1040@-1920.19.1920.1040" timestamp="1594905283788" />
|
||||
<state x="592" y="254" width="672" height="760" key="search.everywhere.popup/0.0.1824.1176@0.0.1824.1176" timestamp="1593762793566" />
|
||||
<state x="623" y="227" width="672" height="678" key="search.everywhere.popup/0.0.1920.1050/1920.0.1920.1050@0.0.1920.1050" timestamp="1588949494981" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,29 @@
|
||||
# protoguide
|
||||
A test project made with Node.js, Vue.js and elasticsearch. Also with love
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Run your unit tests
|
||||
```
|
||||
npm run test:unit
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
```
|
||||
npm run lint
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
@@ -0,0 +1 @@
|
||||
node = https://elastic:dvZjSQ2yd6SGwKDNKHAR@guide.nes.uni-due.de/elastic/
|
||||
@@ -0,0 +1,20 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
# local env files
|
||||
../protoguide-backend/.env.local
|
||||
.env.*.local
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@@ -0,0 +1,80 @@
|
||||
var createError = require('http-errors');
|
||||
var express = require('express');
|
||||
var path = require('path');
|
||||
var cookieParser = require('cookie-parser');
|
||||
var logger = require('morgan');
|
||||
var cors = require('cors');
|
||||
|
||||
let API_STRING = "/api/v1";
|
||||
|
||||
var indexRouter = require('./routes/due');
|
||||
var searchRouter = require('./routes/due/search');
|
||||
var usersRouter = require('./routes/due/users');
|
||||
var keyWordSearchRouter = require('./routes/due/keywordSearch');
|
||||
var statisticsRouter = require('./routes/due/statistics');
|
||||
var yearlyStatistics = require('./routes/due/yearlyStatistics');
|
||||
var queryStatistics = require('./routes/due/queryStatistics');
|
||||
var keywordPerYear = require('./routes/due/keywordPerYear');
|
||||
var wordcount = require('./routes/due/wordscount');
|
||||
|
||||
var dblpKeywordsRouter = require('./routes/dblp/keywords');
|
||||
var dblpStatisticsRouter = require('./routes/dblp/statistics');
|
||||
var dblpYearlyStatisticsRouter = require('./routes/dblp/yearlyStatistics');
|
||||
var dblpKeywordPerYearRouter = require('./routes/dblp/keywordPerYear');
|
||||
var dblpWordcount = require('./routes/dblp/wordscount');
|
||||
var dblpQueryStatistics = require('./routes/dblp/queryStatistics');
|
||||
var dblpKeyWordSearchRouter = require('./routes/dblp/keywordSearch');
|
||||
|
||||
var reportRouter = require('./routes/report/report');
|
||||
|
||||
var app = express();
|
||||
|
||||
// view engine setup
|
||||
app.set('views', path.join(__dirname, 'views'));
|
||||
app.set('view engine', 'pug');
|
||||
|
||||
app.use(logger('dev'));
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({extended: false}));
|
||||
app.use(cookieParser());
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use(cors());
|
||||
|
||||
app.use(API_STRING, indexRouter);
|
||||
app.use(API_STRING + '/listPublications/search', keyWordSearchRouter);
|
||||
app.use(API_STRING + '/search', searchRouter);
|
||||
app.use(API_STRING + '/users', usersRouter);
|
||||
app.use(API_STRING + '/statistics/search',statisticsRouter);
|
||||
app.use(API_STRING + '/yearlyStatistics/search',yearlyStatistics);
|
||||
app.use(API_STRING + '/queryStatistics/search',queryStatistics);
|
||||
app.use(API_STRING + '/keywordPerYear/search', keywordPerYear);
|
||||
app.use(API_STRING + '/wordcount/search', wordcount);
|
||||
|
||||
app.use(API_STRING + '/dblp/statistics/search', dblpStatisticsRouter);
|
||||
app.use(API_STRING + '/dblp/keywords', dblpKeywordsRouter);
|
||||
app.use(API_STRING + '/dblp/yearlyStatistics/search', dblpYearlyStatisticsRouter);
|
||||
app.use(API_STRING + '/dblp/keywordPerYear/search', dblpKeywordPerYearRouter);
|
||||
app.use(API_STRING + '/dblp/wordcount/search', dblpWordcount);
|
||||
app.use(API_STRING + '/dblp/queryStatistics/search', dblpQueryStatistics);
|
||||
app.use(API_STRING + '/dblp/listPublications/search', dblpKeyWordSearchRouter);
|
||||
|
||||
app.use(API_STRING + '/report/keywords', reportRouter);
|
||||
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use(function (req, res, next) {
|
||||
next(createError(404));
|
||||
});
|
||||
|
||||
// error handler
|
||||
app.use(function (err, req, res, next) {
|
||||
// set locals, only providing error in development
|
||||
res.locals.message = err.message;
|
||||
res.locals.error = req.app.get('env') === 'development' ? err : {};
|
||||
|
||||
// render the error page
|
||||
res.status(err.status || 500);
|
||||
res.render('error');
|
||||
});
|
||||
|
||||
module.exports = app;
|
||||
@@ -0,0 +1,92 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var app = require('../app');
|
||||
var debug = require('debug')('protoguide-backend:server');
|
||||
var http = require('http');
|
||||
|
||||
/**
|
||||
* Get port from environment and store in Express.
|
||||
*/
|
||||
|
||||
var port = normalizePort(process.env.PORT || '3000');
|
||||
app.set('port', port);
|
||||
|
||||
/**
|
||||
* Create HTTP server.
|
||||
*/
|
||||
|
||||
var server = http.createServer(app);
|
||||
|
||||
/**
|
||||
* Listen on provided port, on all network interfaces.
|
||||
*/
|
||||
|
||||
server.listen(port, function(){
|
||||
console.log("node server running on port: "+ port);
|
||||
});
|
||||
server.on('error', onError);
|
||||
server.on('listening', onListening);
|
||||
|
||||
/**
|
||||
* Normalize a port into a number, string, or false.
|
||||
*/
|
||||
|
||||
function normalizePort(val) {
|
||||
var port = parseInt(val, 10);
|
||||
|
||||
if (isNaN(port)) {
|
||||
// named pipe
|
||||
return val;
|
||||
}
|
||||
|
||||
if (port >= 0) {
|
||||
// port number
|
||||
return port;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event listener for HTTP server "error" event.
|
||||
*/
|
||||
|
||||
function onError(error) {
|
||||
if (error.syscall !== 'listen') {
|
||||
throw error;
|
||||
}
|
||||
|
||||
var bind = typeof port === 'string'
|
||||
? 'Pipe ' + port
|
||||
: 'Port ' + port;
|
||||
|
||||
// handle specific listen errors with friendly messages
|
||||
switch (error.code) {
|
||||
case 'EACCES':
|
||||
console.error(bind + ' requires elevated privileges');
|
||||
process.exit(1);
|
||||
break;
|
||||
case 'EADDRINUSE':
|
||||
console.error(bind + ' is already in use');
|
||||
process.exit(1);
|
||||
break;
|
||||
default:
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Event listener for HTTP server "listening" event.
|
||||
*/
|
||||
|
||||
function onListening() {
|
||||
var addr = server.address();
|
||||
var bind = typeof addr === 'string'
|
||||
? 'pipe ' + addr
|
||||
: 'port ' + addr.port;
|
||||
debug('Listening on ' + bind);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,8 @@
|
||||
body {
|
||||
padding: 50px;
|
||||
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #00B7FF;
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic');
|
||||
let buckets = require('../../util/bucket');
|
||||
|
||||
router.get('/', function (req, res, next) {
|
||||
|
||||
let gte = req.query["g"];
|
||||
let lte = req.query["l"];
|
||||
let query = req.query["q"];
|
||||
|
||||
query = query.toLowerCase().split(" ").join(" AND ");
|
||||
|
||||
let bodyTotalCount = {
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
match_all: {}
|
||||
},
|
||||
{
|
||||
range: {
|
||||
doc_year: {
|
||||
"gte": 2010,
|
||||
"lte": 2019
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs: {
|
||||
groupByYear: {
|
||||
terms: {
|
||||
field: 'doc_year',
|
||||
size: 100,
|
||||
order: {
|
||||
_key: 'asc'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let body = {
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
query_string: {
|
||||
query: query,
|
||||
default_field: "doc_title"
|
||||
}
|
||||
},
|
||||
{
|
||||
range: {
|
||||
doc_year: {
|
||||
"gte": 2010,
|
||||
"lte": 2019
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs: {
|
||||
groupByYear: {
|
||||
terms: {
|
||||
field: 'doc_year',
|
||||
order: {
|
||||
_key: 'asc'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "dblp_pub", body: body})
|
||||
.then(function (response) {
|
||||
let docs = response.aggregations.groupByYear.buckets;
|
||||
let bucketSample = buckets;
|
||||
bucketSample.forEach(function (bucket) {
|
||||
docs.forEach(function (doc) {
|
||||
if (bucket.key == doc.key) {
|
||||
bucket.doc_count = doc.doc_count;
|
||||
}
|
||||
});
|
||||
});
|
||||
elasticClient.search({index: "dblp_pub", body: bodyTotalCount})
|
||||
.then(function (response) {
|
||||
totalYearlyCountArray = response.aggregations.groupByYear.buckets;
|
||||
totalYearlyCountArray.forEach(function (record) {
|
||||
bucketSample.forEach(function (bucket) {
|
||||
if (bucket.key == record.key) {
|
||||
bucket.doc_count = (bucket.doc_count / record.doc_count).toFixed(4) * 100;
|
||||
}
|
||||
});
|
||||
//let docIndex = bucketSample.findIndex(item => item.key === record.key);
|
||||
//bucketSample[docIndex].doc_count = (bucketSample[docIndex].doc_count / record.doc_count).toFixed(4)*100;
|
||||
});
|
||||
res.send(bucketSample);
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
})
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,56 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
|
||||
let query = req.query["q"];
|
||||
|
||||
query = query.toLowerCase().split(" ").join(" AND ");
|
||||
|
||||
let body = {
|
||||
size: 10000,
|
||||
from: 0,
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
query_string: {
|
||||
query: query,
|
||||
default_field: "doc_title"
|
||||
}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
doc_year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "dblp_pub", body:body})
|
||||
.then(function(response){
|
||||
let results = parseResponse(response.hits.hits);
|
||||
res.send(results);
|
||||
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
function parseResponse(responseData){
|
||||
let results = responseData.map(res => res._source).reduce((acc, {doc_year}) => (acc[doc_year] = (acc[doc_year] || 0) + 1, acc), {});
|
||||
return results;
|
||||
}
|
||||
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,59 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
var stopwords = require('stopword');
|
||||
var WordPos = require('wordpos');
|
||||
let elasticClient = require('../../util/elastic')
|
||||
//Todo change endpoint name
|
||||
/* GET home page. */
|
||||
router.get('/', function(req, res, next) {
|
||||
let body = {
|
||||
query:{
|
||||
bool:{
|
||||
must:[
|
||||
{
|
||||
match_all:{}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
doc_year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs:{
|
||||
keywords: {
|
||||
terms: {
|
||||
field: 'doc_title',
|
||||
size: 100,
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
let wordCloudObjects = [];
|
||||
elasticClient.search({index:"dblp_pub", body:body})
|
||||
.then(function(response){
|
||||
wordpos = new WordPos({profile:true});
|
||||
for (let i = 0; i< response.aggregations.keywords.buckets.length; i++) {
|
||||
let obj = response.aggregations.keywords.buckets[i];
|
||||
let keyName = response.aggregations.keywords.buckets[i].key.toLowerCase();
|
||||
|
||||
if(!stopwords.en.includes(keyName) && !stopwords.de.includes(keyName) && isNaN(keyName)){
|
||||
wordpos.isNoun(keyName).then(wordCloudObjects.push(obj)).catch(console.error);
|
||||
}
|
||||
}
|
||||
//console.log("found keywords: ", wordCloudObjects);
|
||||
res.send(wordCloudObjects);
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("wordcloud objects are empty");
|
||||
res.send([]);
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,48 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
|
||||
let query = req.query["q"];
|
||||
|
||||
query = query.toLowerCase().split(" ").join(" AND ");
|
||||
|
||||
let body = {
|
||||
size: 20,
|
||||
from: 0,
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
query_string: {
|
||||
query: query,
|
||||
default_field: "doc_title"
|
||||
}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
doc_year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "dblp_pub", body:body})
|
||||
.then(function(response){
|
||||
res.send(response.hits.hits);
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,68 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
let body = {
|
||||
size: 0,
|
||||
query:{
|
||||
bool:{
|
||||
must:[
|
||||
{
|
||||
match_all:{}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
doc_year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs: {
|
||||
statistics:{
|
||||
terms: {
|
||||
field: 'doc_type'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "dblp_pub", body:body})
|
||||
.then(function(response){
|
||||
let refinedStatistics = refineStatistics(response.aggregations.statistics.buckets);
|
||||
res.send(refinedStatistics);
|
||||
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
function refineStatistics(object){
|
||||
|
||||
let sum = 0;
|
||||
let index = 0;
|
||||
object.forEach(element => {
|
||||
if(element["key"] === "inproceedings" || element["key"] === "proceedings"){
|
||||
sum = sum + element["doc_count"];
|
||||
}
|
||||
});
|
||||
index = object.findIndex(element => element.key === "inproceedings");
|
||||
object.splice(index,1);
|
||||
object.forEach(element => {
|
||||
if(element["key"] === "proceedings"){
|
||||
element["doc_count"] = sum;
|
||||
}
|
||||
});
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,62 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
|
||||
let totalDocuments = 0;
|
||||
let query = req.query["q"];
|
||||
|
||||
query = query.toLowerCase().split(" ").join(" AND ");
|
||||
|
||||
let body = {
|
||||
track_total_hits: true,
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
query_string: {
|
||||
query: query,
|
||||
default_field: "doc_title"
|
||||
}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
doc_year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.count({index:"dblp_pub"})
|
||||
.then(function(response){
|
||||
totalDocuments = response["count"];
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning no total of docs");
|
||||
res.send([]);
|
||||
});
|
||||
|
||||
elasticClient.search({index: "dblp_pub", body:body})
|
||||
.then(function(response){
|
||||
let result = response.hits.total;
|
||||
result["value"] = (result["value"]/totalDocuments).toFixed(3);
|
||||
res.send(result);
|
||||
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,51 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
let body = {
|
||||
size: 0,
|
||||
query:{
|
||||
bool:{
|
||||
must:[
|
||||
{
|
||||
match_all:{}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
doc_year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs: {
|
||||
groupByYear:{
|
||||
terms:{
|
||||
field: 'doc_year',
|
||||
size: 100,
|
||||
order:{
|
||||
_key: 'asc'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "dblp_pub", body:body})
|
||||
.then(function(response){
|
||||
res.send(response.aggregations.groupByYear.buckets);
|
||||
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,59 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
var stopwords = require('stopword');
|
||||
var WordPos = require('wordpos');
|
||||
let elasticClient = require('../../util/elastic')
|
||||
//Todo change endpoint name
|
||||
/* GET home page. */
|
||||
router.get('/', function(req, res, next) {
|
||||
let body = {
|
||||
query:{
|
||||
bool:{
|
||||
must:[
|
||||
{
|
||||
match_all:{}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs:{
|
||||
keywords: {
|
||||
terms: {
|
||||
field: 'title',
|
||||
size: 100,
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
let wordCloudObjects = [];
|
||||
elasticClient.search({index:"publications_ude", body:body})
|
||||
.then(function(response){
|
||||
wordpos = new WordPos({profile:true});
|
||||
for (let i = 0; i< response.aggregations.keywords.buckets.length; i++) {
|
||||
let obj = response.aggregations.keywords.buckets[i];
|
||||
let keyName = response.aggregations.keywords.buckets[i].key.toLowerCase();
|
||||
|
||||
if(!stopwords.en.includes(keyName) && !stopwords.de.includes(keyName) && isNaN(keyName)){
|
||||
wordpos.isNoun(keyName).then(wordCloudObjects.push(obj)).catch(console.error);
|
||||
}
|
||||
}
|
||||
//console.log("found keywords: ", wordCloudObjects);
|
||||
res.send(wordCloudObjects);
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("wordcloud objects are empty");
|
||||
res.send([]);
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,120 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic');
|
||||
let buckets = require('../../util/bucket');
|
||||
|
||||
|
||||
router.get('/', function (req, res, next) {
|
||||
|
||||
let gte = req.query["g"];
|
||||
let lte = req.query["l"];
|
||||
let query = req.query["q"];
|
||||
|
||||
|
||||
query = query.toLowerCase().split(" ").join(" AND ");
|
||||
|
||||
let bodyTotalCount = {
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
match_all: {}
|
||||
},
|
||||
{
|
||||
range: {
|
||||
year: {
|
||||
"gte": 2010,
|
||||
"lte": 2019
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs: {
|
||||
groupByYear: {
|
||||
terms: {
|
||||
field: 'year',
|
||||
size: 100,
|
||||
order: {
|
||||
_key: 'asc'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let body = {
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
query_string: {
|
||||
query: query,
|
||||
default_field: "title"
|
||||
}
|
||||
},
|
||||
{
|
||||
range: {
|
||||
year: {
|
||||
"gte": 2010,
|
||||
"lte": 2019
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs: {
|
||||
groupByYear: {
|
||||
terms: {
|
||||
field: 'year',
|
||||
order: {
|
||||
_key: 'asc'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "publications_ude", body: body})
|
||||
.then(function (response) {
|
||||
let docs = response.aggregations.groupByYear.buckets;
|
||||
let bucketSample = buckets;
|
||||
bucketSample.forEach(function (bucket) {
|
||||
docs.forEach(function (doc) {
|
||||
if (bucket.key === doc.key) {
|
||||
bucket.doc_count = doc.doc_count;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
elasticClient.search({index: "publications_ude", body: bodyTotalCount})
|
||||
.then(function (response) {
|
||||
totalYearlyCountArray = response.aggregations.groupByYear.buckets;
|
||||
totalYearlyCountArray.forEach(function (record) {
|
||||
bucketSample.forEach(function (bucket) {
|
||||
if (bucket.key === record.key) {
|
||||
bucket.doc_count = (bucket.doc_count / record.doc_count).toFixed(4) * 100;
|
||||
}
|
||||
});
|
||||
//let docIndex = bucketSample.findIndex(item => item.key === record.key);
|
||||
//bucketSample[docIndex].doc_count = (bucketSample[docIndex].doc_count / record.doc_count).toFixed(4)* 100;
|
||||
});
|
||||
res.send(bucketSample);
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
})
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,56 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
|
||||
let query = req.query["q"];
|
||||
|
||||
query = query.toLowerCase().split(" ").join(" AND ");
|
||||
|
||||
let body = {
|
||||
size: 10000,
|
||||
from: 0,
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
query_string: {
|
||||
query: query,
|
||||
default_field: "title"
|
||||
}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "publications_ude", body:body})
|
||||
.then(function(response){
|
||||
let results = parseResponse(response.hits.hits);
|
||||
res.send(results);
|
||||
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
function parseResponse(responseData){
|
||||
let results = responseData.map(res => res._source).reduce((acc, {subject}) => (acc[subject] = (acc[subject] || 0) + 1, acc), {});
|
||||
return results;
|
||||
}
|
||||
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,48 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
|
||||
let query = req.query["q"];
|
||||
|
||||
query = query.toLowerCase().split(" ").join(" AND ");
|
||||
|
||||
let body = {
|
||||
size: 20,
|
||||
from: 0,
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
query_string: {
|
||||
query: query,
|
||||
default_field: "title"
|
||||
}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "publications_ude", body:body})
|
||||
.then(function(response){
|
||||
res.send(response.hits.hits);
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,51 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic');
|
||||
|
||||
/* GET search page. */
|
||||
router.get('/', function(req, res, next) {
|
||||
|
||||
let body = {
|
||||
size: 40,
|
||||
from: 0,
|
||||
query:{
|
||||
bool:{
|
||||
must:[
|
||||
{
|
||||
query_string:{
|
||||
query: req.query["q"]
|
||||
}
|
||||
},
|
||||
{
|
||||
range: {
|
||||
year: {
|
||||
"gte": req.query["g"],
|
||||
"lte": req.query["l"],
|
||||
"boost": 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
sort: [
|
||||
{
|
||||
year: {
|
||||
order: "asc"
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
elasticClient.search({index: "publications_ude", body:body})
|
||||
.then(results => {
|
||||
res.send(results.hits.hits);
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,47 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
let body = {
|
||||
size: 0,
|
||||
query:{
|
||||
bool:{
|
||||
must:[
|
||||
{
|
||||
match_all:{}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs: {
|
||||
statistics:{
|
||||
terms: {
|
||||
field: 'genre'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "publications_ude", body:body})
|
||||
.then(function(response){
|
||||
res.send(response.aggregations.statistics.buckets);
|
||||
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,9 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
|
||||
/* GET users listing. */
|
||||
router.get('/', function(req, res, next) {
|
||||
res.send('respond with a resource');
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,69 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
|
||||
let totalDocuments = 0;
|
||||
let query = req.query["q"];
|
||||
|
||||
query = query.toLowerCase().split(" ").join(" AND ");
|
||||
|
||||
let body = {
|
||||
track_total_hits: true,
|
||||
query: {
|
||||
bool: {
|
||||
must: [
|
||||
{
|
||||
query_string: {
|
||||
query: query,
|
||||
default_field: "title"
|
||||
}
|
||||
},/*,
|
||||
{
|
||||
term:{
|
||||
subject:"wiwi"
|
||||
}
|
||||
TODO: add words per subject
|
||||
},*/
|
||||
{
|
||||
range:{
|
||||
year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.count({index:"publications_ude"})
|
||||
.then(function(response){
|
||||
totalDocuments = response["count"];
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning no total of docs");
|
||||
res.send([]);
|
||||
});
|
||||
|
||||
elasticClient.search({index: "publications_ude", body:body})
|
||||
.then(function(response){
|
||||
let result = response.hits.total;
|
||||
result["value"] = (result["value"]/totalDocuments).toFixed(2);
|
||||
res.send(result);
|
||||
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,51 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
let elasticClient = require('../../util/elastic')
|
||||
|
||||
router.get('/',function(req,res, next){
|
||||
let body = {
|
||||
size: 0,
|
||||
query:{
|
||||
bool:{
|
||||
must:[
|
||||
{
|
||||
match_all:{}
|
||||
},
|
||||
{
|
||||
range:{
|
||||
year:{
|
||||
"gte" : req.query["g"],
|
||||
"lte" : req.query["l"],
|
||||
"boost" : 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
aggs: {
|
||||
groupByYear:{
|
||||
terms:{
|
||||
field: 'year',
|
||||
size: 100,
|
||||
order:{
|
||||
_key: 'asc'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
elasticClient.search({index: "publications_ude", body:body})
|
||||
.then(function(response){
|
||||
res.send(response.aggregations.groupByYear.buckets);
|
||||
|
||||
})
|
||||
.catch(err =>{
|
||||
console.log(err);
|
||||
console.log("returning empty object");
|
||||
res.send([]);
|
||||
})
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,10 @@
|
||||
var express = require('express');
|
||||
var router = express.Router();
|
||||
var keywords = require('../../util/keywords');
|
||||
|
||||
router.get('/', function (req, res, next) {
|
||||
res.send(keywords);
|
||||
});
|
||||
|
||||
|
||||
module.exports = router;
|
||||
@@ -0,0 +1,45 @@
|
||||
let bucket = [
|
||||
{
|
||||
"key": 2010,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2011,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2012,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2013,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2014,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2015,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2016,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2017,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2018,
|
||||
"doc_count": 0,
|
||||
},
|
||||
{
|
||||
"key": 2019,
|
||||
"doc_count": 0,
|
||||
}
|
||||
|
||||
];
|
||||
|
||||
module.exports = bucket;
|
||||
@@ -0,0 +1,23 @@
|
||||
const elasticsearch = require('elasticsearch')
|
||||
|
||||
require('dotenv').config(
|
||||
{path: './.env'}
|
||||
);
|
||||
|
||||
//const dotenv = require('dotenv');
|
||||
//dotenv.config();
|
||||
|
||||
let elasticConnection = new elasticsearch.Client({
|
||||
hosts:process.env.node,
|
||||
log:"error"
|
||||
});
|
||||
|
||||
elasticConnection.ping({requestTimeout:5000},function(err){
|
||||
if(err){
|
||||
console.log("elasticsearch cluster is down: " + err)
|
||||
}else{
|
||||
console.log("elasticsearch is up and running");
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = elasticConnection;
|
||||
@@ -0,0 +1,79 @@
|
||||
let keywords = [
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Artificial intelligence",
|
||||
"children": [
|
||||
{
|
||||
"id": 3,
|
||||
"name": "Neural network",
|
||||
"children": [
|
||||
{
|
||||
"id": 35,
|
||||
"name": "Convolutional Neural Network"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "machine learning"
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "network",
|
||||
"children": [
|
||||
{
|
||||
"id": 6,
|
||||
"name": "Network algorithms"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"name": "Wireless networks"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"name": "Cloud computing"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"name": "Security",
|
||||
"children": [
|
||||
{
|
||||
"id": 10,
|
||||
"name": "User privacy",
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "Cryptography"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"name": "Network security"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"name": "Information systems",
|
||||
"children": [
|
||||
{
|
||||
"id": 14,
|
||||
"name": "Word wide web"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"name": "Computer graphics",
|
||||
"children": [
|
||||
{
|
||||
"id": 16,
|
||||
"name": "Rendering"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
module.exports = keywords;
|
||||
@@ -0,0 +1,6 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
h1= message
|
||||
h2= error.status
|
||||
pre #{error.stack}
|
||||
@@ -0,0 +1,5 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
h1= title
|
||||
p Welcome to #{title}
|
||||
@@ -0,0 +1,7 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title= title
|
||||
link(rel='stylesheet', href='/stylesheets/style.css')
|
||||
body
|
||||
block content
|
||||
@@ -0,0 +1,3 @@
|
||||
> 1%
|
||||
last 2 versions
|
||||
not dead
|
||||
@@ -0,0 +1,28 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
'extends': [
|
||||
'plugin:vue/essential',
|
||||
'eslint:recommended'
|
||||
],
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint'
|
||||
},
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: [
|
||||
'**/__tests__/*.{j,t}s?(x)',
|
||||
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
||||
],
|
||||
env: {
|
||||
mocha: true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
# local env files
|
||||
../protoguide-backend/.env.local
|
||||
.env.*.local
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"keywords": ["community detection",
|
||||
"brain-computer interface",
|
||||
"sensor networks",
|
||||
"robotics",
|
||||
"machine learning",
|
||||
"neural networks",
|
||||
"Fault-tolerant quantum computation"]
|
||||
|
||||
}
|
||||
Generated
+13469
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "protoguide",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"test:unit": "vue-cli-service test:unit",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@okta/okta-vue": "^1.0.0",
|
||||
"apexcharts": "^3.19.0",
|
||||
"axios": "^0.19.2",
|
||||
"bootstrap": "^4.5.0",
|
||||
"bootstrap-vue": "^2.14.0",
|
||||
"core-js": "^3.6.4",
|
||||
"d3": "^5.16.0",
|
||||
"jquery": "^3.5.1",
|
||||
"vue": "^2.6.11",
|
||||
"vue-apexcharts": "^1.5.3",
|
||||
"vue-axios": "^2.1.5",
|
||||
"vue-router": "^3.1.6",
|
||||
"vuetify": "^2.2.11",
|
||||
"vuewordcloud": "^18.7.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mdi/font": "^5.3.45",
|
||||
"@mdi/js": "^5.3.45",
|
||||
"@vue/cli-plugin-babel": "~4.3.0",
|
||||
"@vue/cli-plugin-eslint": "~4.3.0",
|
||||
"@vue/cli-plugin-router": "~4.3.0",
|
||||
"@vue/cli-plugin-unit-mocha": "~4.3.0",
|
||||
"@vue/cli-plugin-vuex": "~4.3.0",
|
||||
"@vue/cli-service": "^4.3.1",
|
||||
"@vue/test-utils": "1.0.0-beta.31",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"chai": "^4.1.2",
|
||||
"es6-promise": "^4.2.8",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"material-design-icons": "^3.0.1",
|
||||
"materialize-css": "^1.0.0",
|
||||
"sass": "^1.19.0",
|
||||
"sass-loader": "^8.0.0",
|
||||
"vue-cli-plugin-vuetify": "~2.0.5",
|
||||
"vue-template-compiler": "^2.6.11",
|
||||
"vuetify-loader": "^1.3.0",
|
||||
"vuex": "^3.5.1"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>logo_guide_small.png">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<NavbarComponent></NavbarComponent>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavbarComponent from '@/components/NavbarComponent.vue';
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
components:{
|
||||
NavbarComponent
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#app {
|
||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-align: center;
|
||||
color: #2c3e50;
|
||||
}
|
||||
div.v-application--wrap {
|
||||
min-height:0;
|
||||
}
|
||||
</style>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
@@ -0,0 +1 @@
|
||||
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 87.5 100"><defs><style>.cls-1{fill:#1697f6;}.cls-2{fill:#7bc6ff;}.cls-3{fill:#1867c0;}.cls-4{fill:#aeddff;}</style></defs><title>Artboard 46</title><polyline class="cls-1" points="43.75 0 23.31 0 43.75 48.32"/><polygon class="cls-2" points="43.75 62.5 43.75 100 0 14.58 22.92 14.58 43.75 62.5"/><polyline class="cls-3" points="43.75 0 64.19 0 43.75 48.32"/><polygon class="cls-4" points="64.58 14.58 87.5 14.58 43.75 100 43.75 62.5 64.58 14.58"/></svg>
|
||||
|
After Width: | Height: | Size: 539 B |
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<h1>{{ msg }}</h1>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "AboutComponent",
|
||||
props: {
|
||||
msg: String
|
||||
},
|
||||
data:function(){
|
||||
return{
|
||||
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,69 @@
|
||||
<template>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{title}}</h5>
|
||||
<div class="card-text">
|
||||
<div class="d-flex justify-content-center text-dark">
|
||||
<div class="spinner-border" role="status" v-if="loading">
|
||||
<span class="sr-only">Loading...</span>
|
||||
</div>
|
||||
<DonutChartComponent v-if="!loading && type==='donut'" :chartSets="inputArray"></DonutChartComponent>
|
||||
<AreaChartComponent v-if= "!loading && type==='area'" :chartSets="inputArray" ></AreaChartComponent>
|
||||
<ComparisonAreaChartComponent v-if ="!loading && type==='area_compare'" :due_data="inputArray" :dblp_data ="inputArray2"></ComparisonAreaChartComponent>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DonutChartComponent from './DonutChartComponent'
|
||||
import AreaChartComponent from './AreaChartComponent'
|
||||
import ComparisonAreaChartComponent from './ComparisonAreaChartComponent'
|
||||
|
||||
export default {
|
||||
name: "ApexComponent",
|
||||
props:{
|
||||
title:String,
|
||||
type:String,
|
||||
loading: Boolean,
|
||||
resultSet:Array,
|
||||
resultSet2:Array
|
||||
},
|
||||
components:{
|
||||
DonutChartComponent,
|
||||
AreaChartComponent,
|
||||
ComparisonAreaChartComponent
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
},
|
||||
computed:{
|
||||
inputArray: function () {
|
||||
if(this.loading) return {};
|
||||
let obj = this.resultSet;
|
||||
if(obj){
|
||||
return obj
|
||||
}else{
|
||||
return []
|
||||
}
|
||||
},
|
||||
inputArray2: function () {
|
||||
if(this.loading) return {};
|
||||
let obj = this.resultSet2;
|
||||
if(obj){
|
||||
return obj
|
||||
}else{
|
||||
return []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<div id="chart">
|
||||
<apexchart type="area" :options="chartOptions" :series="series"></apexchart>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "AreaChartComponent",
|
||||
props:{
|
||||
chartSets:Array
|
||||
},
|
||||
data: function (){
|
||||
return {
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
series:function () {
|
||||
return [{
|
||||
name:"Entries",
|
||||
data: this.chartSets.map(x => x.doc_count)},
|
||||
];
|
||||
},
|
||||
chartOptions:function () {
|
||||
return {
|
||||
chart: {
|
||||
type: 'area',
|
||||
width: "100%",
|
||||
height: 400,
|
||||
zoom: {
|
||||
enabled: false
|
||||
}
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: false
|
||||
},
|
||||
stroke: {
|
||||
curve: 'smooth'
|
||||
},
|
||||
colors: ['#EE7C34'],
|
||||
labels:this.chartSets.map(x => x.key),
|
||||
xaxis: {
|
||||
type: 'String',
|
||||
labels: {
|
||||
show:false,
|
||||
rotate: -90,
|
||||
rotateAlways: false,
|
||||
minHeight: 0,
|
||||
maxHeight: 100,
|
||||
|
||||
}
|
||||
},
|
||||
yaxis: {
|
||||
opposite: false
|
||||
},
|
||||
legend: {
|
||||
horizontalAlign: 'left'
|
||||
},
|
||||
responsive:[{
|
||||
breakpoint: 480,
|
||||
options: {
|
||||
legend: {
|
||||
position: 'bottom',
|
||||
offsetX:-10,
|
||||
offsetY:-10
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#chart {
|
||||
max-width: 750px;
|
||||
width:750px;
|
||||
margin: 35px auto;
|
||||
opacity: 0.9;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,167 @@
|
||||
<template>
|
||||
<div class="card" >
|
||||
<div class="card-body">
|
||||
<div v-if="$router.currentRoute.name === 'Home'">
|
||||
<h5 class="card-title">Analysis of keyword "{{word}}" in fields</h5>
|
||||
</div>
|
||||
<div v-if="$router.currentRoute.name === 'Dblp'">
|
||||
<h5 class="card-title">Analysis of keyword "{{word}}" in years</h5>
|
||||
</div>
|
||||
<div class="card-text">
|
||||
<div class="d-flex justify-content-center text-dark">
|
||||
<div class="spinner-border" role="status" v-if="loading">
|
||||
<span class="sr-only">Loading...</span>
|
||||
</div>
|
||||
<div class="barChart" v-if="!loading">
|
||||
<div id="chart">
|
||||
<apexchart type="bar" :options="chartOptions" :series="series"></apexchart>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "BarChartComponent",
|
||||
props: {
|
||||
word: String,
|
||||
title: String,
|
||||
loading: Boolean,
|
||||
resultSet: Object
|
||||
},
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
computed:{
|
||||
series:function () {
|
||||
return [
|
||||
{
|
||||
name: "Word frequency",
|
||||
data: Object.values(this.resultSet)
|
||||
}]
|
||||
},
|
||||
chartOptions: function () {
|
||||
return {
|
||||
chart: {
|
||||
height: 480,
|
||||
width:'100%',
|
||||
type: 'bar',
|
||||
},
|
||||
plotOptions: {
|
||||
bar: {
|
||||
horizontal:true,
|
||||
dataLabels: {
|
||||
position: 'top', // top, center, bottom
|
||||
},
|
||||
}
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: true,
|
||||
offsetY: 0,
|
||||
offsetX: 40,
|
||||
style: {
|
||||
fontSize: '14px',
|
||||
colors: ["#4169A0"]
|
||||
}
|
||||
},
|
||||
colors: ['#4169A0'],
|
||||
xaxis: {
|
||||
categories: Object.keys(this.resultSet),
|
||||
position: 'bottom',
|
||||
labels: {
|
||||
show:false,
|
||||
rotate: -90,
|
||||
rotateAlways: false,
|
||||
minHeight: 0,
|
||||
maxHeight: 100,
|
||||
|
||||
},
|
||||
axisBorder: {
|
||||
show: true
|
||||
},
|
||||
axisTicks: {
|
||||
show: true
|
||||
},
|
||||
crosshairs: {
|
||||
fill: {
|
||||
type: 'gradient',
|
||||
gradient: {
|
||||
colorFrom: '#D8E3F0',
|
||||
colorTo: '#BED1E6',
|
||||
stops: [0, 100],
|
||||
opacityFrom: 0.4,
|
||||
opacityTo: 0.5,
|
||||
}
|
||||
}
|
||||
},
|
||||
tooltip: {
|
||||
enabled: true,
|
||||
}
|
||||
},
|
||||
yaxis: {
|
||||
axisBorder: {
|
||||
show: false
|
||||
},
|
||||
axisTicks: {
|
||||
show: false,
|
||||
},
|
||||
labels: {
|
||||
show: false,
|
||||
}
|
||||
|
||||
},
|
||||
title: {
|
||||
floating: true,
|
||||
offsetY: 330,
|
||||
align: 'center',
|
||||
style: {
|
||||
color: '#444'
|
||||
}
|
||||
},
|
||||
responsive:[{
|
||||
breakpoint: 760,
|
||||
options: {
|
||||
dataLabels:{
|
||||
offsetY: -35,
|
||||
offsetX: 0
|
||||
},
|
||||
plotOptions: {
|
||||
bar: {
|
||||
horizontal: false
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
position: "bottom"
|
||||
}
|
||||
}
|
||||
}]
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.barChart {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#chart {
|
||||
max-width: 760px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
div#chart div {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,109 @@
|
||||
<template>
|
||||
<div id="chart">
|
||||
<apexchart type="area" :options="chartOptions" :series="series"></apexchart>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ComparisonAreaChartComponent",
|
||||
props:{
|
||||
due_data:Array,
|
||||
dblp_data:Array
|
||||
},
|
||||
data: function (){
|
||||
return {
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
series:function () {
|
||||
return [
|
||||
{
|
||||
name: "DUE Entries(%)",
|
||||
data: this.due_data.map(x => x.doc_count)
|
||||
},
|
||||
{
|
||||
name: "DBLP Entries(%)",
|
||||
data: this.dblp_data.map(x => x.doc_count)
|
||||
}
|
||||
];
|
||||
},
|
||||
chartOptions:function () {
|
||||
return {
|
||||
chart: {
|
||||
type: 'area',
|
||||
width: "100%",
|
||||
height: 400,
|
||||
zoom: {
|
||||
enabled: false
|
||||
}
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: false
|
||||
},
|
||||
stroke: {
|
||||
curve: 'smooth'
|
||||
},
|
||||
colors: ['#EE7C34','#0D3E85'],
|
||||
labels:this.due_data.map(x => x.key),
|
||||
xaxis: {
|
||||
type: 'String',
|
||||
labels: {
|
||||
show:false,
|
||||
rotate: -90,
|
||||
rotateAlways: false,
|
||||
minHeight: 0,
|
||||
maxHeight: 100,
|
||||
|
||||
}
|
||||
},
|
||||
yaxis: [
|
||||
|
||||
{
|
||||
title: {
|
||||
text: "Percent of entries (%)"
|
||||
},
|
||||
decimalsInFloat: 2,
|
||||
floating: false
|
||||
},
|
||||
/*{
|
||||
title: {
|
||||
text: "DUE Entries (%)"
|
||||
},
|
||||
},
|
||||
{
|
||||
opposite: true,
|
||||
title: {
|
||||
text: "DBLP Entries (%)"
|
||||
}
|
||||
}
|
||||
* */
|
||||
|
||||
],
|
||||
legend: {
|
||||
horizontalAlign: 'left'
|
||||
},
|
||||
responsive:[{
|
||||
breakpoint: 480,
|
||||
options: {
|
||||
legend: {
|
||||
position: 'bottom',
|
||||
offsetX:-10,
|
||||
offsetY:-10
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#chart {
|
||||
max-width: 1200px;
|
||||
width:1200px;
|
||||
margin: 35px auto;
|
||||
opacity: 0.9;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,157 @@
|
||||
<template>
|
||||
<div id="chart">
|
||||
<apexchart type="donut" :options="chartOptions" :series="series"></apexchart>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "DonutChartComponent",
|
||||
props: {
|
||||
chartSets: Array
|
||||
},
|
||||
components: {
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getLegends() {
|
||||
//console.log(this.chartSets.map(x=>x.key))
|
||||
this.options.labels = this.chartSets.map(x => x.key);
|
||||
},
|
||||
getSeries() {
|
||||
//console.log(this.chartSets.map(x=>x.doc_count))
|
||||
this.series = this.chartSets.map(x => x.doc_count);
|
||||
},
|
||||
},
|
||||
created(){
|
||||
//this.getSeries();
|
||||
//this.getLegends();
|
||||
},
|
||||
computed: {
|
||||
series: function () {
|
||||
return this.chartSets.map(x => x.doc_count);
|
||||
},
|
||||
chartOptions: function () {
|
||||
if(this.$router.currentRoute.name === "Dblp"){
|
||||
return {
|
||||
legend: {
|
||||
show: true,
|
||||
position: "bottom",
|
||||
markers: {
|
||||
}
|
||||
},
|
||||
colors: ['#ffba08ff','#faa307ff','#f48c06ff','#370617ff'],
|
||||
theme: {
|
||||
mode: 'light',
|
||||
palette: 'palette2',
|
||||
monochrome: {
|
||||
enabled: false,
|
||||
color: '#ea9000',
|
||||
shadeTo: 'light',
|
||||
shadeIntensity: 0.80
|
||||
},
|
||||
},
|
||||
labels: ["article", "incollection","proceedings", "book"],
|
||||
dataLabels: {
|
||||
enabled: true
|
||||
},
|
||||
chart: {
|
||||
animations: {
|
||||
enabled: true,
|
||||
easing: 'easeinout',
|
||||
speed: 1000,
|
||||
animateGradually: {
|
||||
enabled: true,
|
||||
delay: 150
|
||||
},
|
||||
dynamicAnimation: {
|
||||
enabled: true,
|
||||
speed: 350
|
||||
}
|
||||
},
|
||||
type: 'donut',
|
||||
width: "100%",
|
||||
height: 400,
|
||||
},
|
||||
responsive:[{
|
||||
breakpoint: 480,
|
||||
options: {
|
||||
legend: {
|
||||
position: 'bottom',
|
||||
offsetX:-10,
|
||||
offsetY:-10
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
}else{
|
||||
return {
|
||||
legend: {
|
||||
show: true,
|
||||
position: "bottom",
|
||||
markers: {
|
||||
}
|
||||
},
|
||||
colors: ['#ffba08ff','#faa307ff','#f48c06ff','#e85d04ff','#dc2f02ff','#d00000ff','#9d0208ff','#6a040fff','#370617ff','#03071eff'],
|
||||
theme: {
|
||||
mode: 'light',
|
||||
palette: 'palette2',
|
||||
monochrome: {
|
||||
enabled: false,
|
||||
color: '#ea9000',
|
||||
shadeTo: 'light',
|
||||
shadeIntensity: 0.80
|
||||
},
|
||||
},
|
||||
labels: ["article", "chapter", "dissertation", "book", "speech", "review", "abstract", "preface", "entry", "collection"],
|
||||
dataLabels: {
|
||||
enabled: true
|
||||
},
|
||||
chart: {
|
||||
animations: {
|
||||
enabled: true,
|
||||
easing: 'easeinout',
|
||||
speed: 1000,
|
||||
animateGradually: {
|
||||
enabled: true,
|
||||
delay: 150
|
||||
},
|
||||
dynamicAnimation: {
|
||||
enabled: true,
|
||||
speed: 350
|
||||
}
|
||||
},
|
||||
type: 'donut',
|
||||
width: "100%",
|
||||
height: 400,
|
||||
},
|
||||
responsive:[{
|
||||
breakpoint: 480,
|
||||
options: {
|
||||
legend: {
|
||||
position: 'bottom',
|
||||
offsetX:-10,
|
||||
offsetY:-10
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#chart {
|
||||
max-width: 750px;
|
||||
width:500px;
|
||||
margin: 35px auto;
|
||||
opacity: 0.9;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<v-container>
|
||||
<v-row class="text-center">
|
||||
<v-col cols="12">
|
||||
<v-img
|
||||
:src="require('../assets/logo_guide.png')"
|
||||
class="my-3"
|
||||
contain
|
||||
height="200"
|
||||
/>
|
||||
</v-col>
|
||||
|
||||
<v-col class="mb-4">
|
||||
<h1 class="display-2 font-weight-bold mb-3">
|
||||
Welcome to GUIDE
|
||||
</h1>
|
||||
|
||||
<p class="subheading font-weight-regular">
|
||||
A modern search engine and analysis tool
|
||||
to identify innovations and their potential
|
||||
</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "HomepageComponent"
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,59 @@
|
||||
<template>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<form @submit.prevent="submitWord" class="col s12">
|
||||
<div class="input-field">
|
||||
<input v-model="keyword" id="icon_prefix2" class="materialize-textarea"
|
||||
placeholder="Submit a word for comparison">
|
||||
</div>
|
||||
<button class="btn waves-effect col s12 orange">Compare</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import materialize from 'materialize-css';
|
||||
|
||||
export default {
|
||||
name: "KeywordComparisonComponent",
|
||||
props: {},
|
||||
data: function () {
|
||||
return {
|
||||
keyword: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitWord() {
|
||||
this.$emit("keywordComparison",this.keyword);
|
||||
this.keyword = '';
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
materialize.AutoInit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
i.icon-orange {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
span.keyword{
|
||||
color:#1D4B8E;
|
||||
}
|
||||
|
||||
/* label focus color */
|
||||
.input-field input:focus + label {
|
||||
color: orange !important;
|
||||
}
|
||||
/* label underline focus color */
|
||||
.row .input-field input:focus {
|
||||
border-bottom: 1px solid orange !important;
|
||||
box-shadow: 0 1px 0 0 orange !important
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,125 @@
|
||||
<template>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<form @submit.prevent="submitWord" class="col s12">
|
||||
<div class="input-field">
|
||||
<input v-model="newWord" id="icon_prefix2" class="materialize-textarea"
|
||||
placeholder="Add new keywords...">
|
||||
</div>
|
||||
<button class="btn waves-effect col s12 orange">Add</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="row">
|
||||
<ul class="collection col s12">
|
||||
<li class="collection-item" v-for="(word,index) in words" :key="index">
|
||||
<p>
|
||||
<label>
|
||||
<span class="keyword">{{word[0]}}</span>
|
||||
<span>
|
||||
<a @click.prevent="deleteWord(index)">
|
||||
<i class="material-icons right icon-orange">delete</i>
|
||||
</a>
|
||||
</span>
|
||||
</label>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import materialize from 'materialize-css';
|
||||
import store from '../store';
|
||||
|
||||
export default {
|
||||
name: "KeywordComponent",
|
||||
props: {},
|
||||
data: function () {
|
||||
return {
|
||||
newWord: '',
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
words: {
|
||||
handler() {
|
||||
//localStorage.words = JSON.stringify(this.words);
|
||||
},
|
||||
},
|
||||
},
|
||||
computed:{
|
||||
words:function () {
|
||||
if(this.$router.currentRoute.name === "Dblp"){
|
||||
return store.state.wordsListDblp;
|
||||
}else{
|
||||
return store.state.wordsList;
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
materialize.AutoInit();
|
||||
if (localStorage.words) {
|
||||
//this.words = JSON.parse(localStorage.words);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitWord() {
|
||||
let obj= [];
|
||||
let temp = this.newWord;
|
||||
let flag = false;
|
||||
for(let i = 0; i < this.words.length; i++){
|
||||
if(this.words[i][0] === temp){
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
let time = store.state.time;
|
||||
if(this.newWord !== "" && !flag) {
|
||||
if (this.$router.currentRoute.name === "Dblp") {
|
||||
this.$api.get("dblp/wordcount/search?q=" + this.newWord + "&g=" + time[0] + "&l=" + time[1]).then(res => {
|
||||
obj.push(temp, res.data.value);
|
||||
}).catch(err => console.log(err));
|
||||
store.commit("pushWordDblp", obj);
|
||||
|
||||
} else {
|
||||
this.$api.get("wordcount/search?q=" + this.newWord + "&g=" + time[0] + "&l=" + time[1]).then(res => {
|
||||
obj.push(temp, res.data.value);
|
||||
}).catch(err => console.log(err));
|
||||
store.commit("pushWord", obj);
|
||||
}
|
||||
}
|
||||
this.newWord = '';
|
||||
},
|
||||
deleteWord(index) {
|
||||
if(this.$router.currentRoute.name === "Dblp"){
|
||||
store.commit("popWordDblp",index);
|
||||
}else{
|
||||
store.commit("popWord",index);
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
i.icon-orange {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
span.keyword{
|
||||
color:#1D4B8E;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.input-field input:focus + label {
|
||||
color: orange !important;
|
||||
}
|
||||
|
||||
.row .input-field input:focus {
|
||||
border-bottom: 1px solid orange !important;
|
||||
box-shadow: 0 1px 0 0 orange !important
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,95 @@
|
||||
<template>
|
||||
<div id="nav">
|
||||
<!-- Image and text -->
|
||||
<b-navbar variant="faded" type="light">
|
||||
<b-navbar-brand href="">
|
||||
<img src="../assets/logo_guide_small.png" class="d-inline-block align-center" alt="">
|
||||
</b-navbar-brand>
|
||||
<b-nav-item-dropdown id="dashboard-dropdown" href="" class="d-inline-block align-center" toggle-class = "text-dark" text="Dashboards">
|
||||
<b-dropdown-item>
|
||||
<router-link to="/uni"> UDE Statistics</router-link>
|
||||
</b-dropdown-item>
|
||||
<b-dropdown-item>
|
||||
<router-link to="/dblp"> DBLP Statistics</router-link>
|
||||
</b-dropdown-item>
|
||||
<b-dropdown-divider></b-dropdown-divider>
|
||||
<b-dropdown-item>
|
||||
<router-link to="/compare"> DBLP vs UDE</router-link>
|
||||
</b-dropdown-item>
|
||||
<b-dropdown-item>
|
||||
<router-link to="/report"> Report Generation</router-link>
|
||||
</b-dropdown-item>
|
||||
</b-nav-item-dropdown>
|
||||
<b-nav-item href="#" class="d-inline-block align-center">
|
||||
<router-link to="/search">Search</router-link>
|
||||
</b-nav-item>
|
||||
<b-nav-item href="#" class="d-inline-block align-center" @click.prevent="login" v-if="!activeUser">Login</b-nav-item>
|
||||
<b-nav-item href="#" class="d-inline-block align-center" @click.prevent="logout" v-else>Logout</b-nav-item>
|
||||
</b-navbar>
|
||||
<router-view/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "NavbarComponent",
|
||||
data () {
|
||||
return {
|
||||
activeUser: null
|
||||
}
|
||||
},
|
||||
async created () {
|
||||
await this.refreshActiveUser()
|
||||
},
|
||||
watch: {
|
||||
// everytime a route is changed refresh the activeUser
|
||||
'$route': 'refreshActiveUser'
|
||||
},
|
||||
methods: {
|
||||
login () {
|
||||
this.$auth.loginRedirect()
|
||||
},
|
||||
async refreshActiveUser () {
|
||||
this.activeUser = await this.$auth.getUser()
|
||||
},
|
||||
async logout () {
|
||||
await this.$auth.logout()
|
||||
await this.refreshActiveUser()
|
||||
this.$router.push('/')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#nav {
|
||||
padding: 30px;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
#nav #dashboard-dropdown {
|
||||
padding: 5px;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
#dashboard-dropdown li{
|
||||
font-size: 14px;
|
||||
}
|
||||
#nav a{
|
||||
color: black;
|
||||
float: left;
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 14px;
|
||||
text-decoration: none;
|
||||
|
||||
}
|
||||
nav{
|
||||
background-color:white;
|
||||
box-shadow: none;
|
||||
}
|
||||
#nav{
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,90 @@
|
||||
<template>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{title}}</h5>
|
||||
<div class="card-text">
|
||||
<div class="d-flex justify-content-center text-dark">
|
||||
<div class="spinner-border" role="status" v-if="loading">
|
||||
<span class="sr-only">Loading...</span>
|
||||
</div>
|
||||
<div class="row" v-if="resultSet && !loading">
|
||||
<div class="col-md-3" v-for="(result,index) in resultSet" :key="index">
|
||||
<div v-if="$router.currentRoute.name === 'Home'">
|
||||
<div class="topic">
|
||||
<div class="topic-heading">
|
||||
<p>Subject : {{ result._source.subject }}</p>
|
||||
<p>Genre: {{ result._source.genre }}</p>
|
||||
<p>Title: {{ result._source.title}}</p>
|
||||
</div>
|
||||
<div class="topic-body">
|
||||
<p>Year : {{ result._source.year }}.</p>
|
||||
<p>Authors: {{ result._source.person_aut }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="$router.currentRoute.name === 'Dblp'">
|
||||
<div class="topic">
|
||||
<div class="topic-heading">
|
||||
<p>Subject : {{ result._source.doc_title }}</p>
|
||||
<p>Journal: {{ result._source.doc_journal }}</p>
|
||||
<p>Type: {{ result._source.doc_type}}</p>
|
||||
</div>
|
||||
<div class="topic-body">
|
||||
<p>Year : {{ result._source.doc_year }}.</p>
|
||||
<p>Authors: {{ result._source.doc_authors }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "QueryStatisticsComponent",
|
||||
props: {
|
||||
title: String,
|
||||
resultSet: Array,
|
||||
loading: Boolean
|
||||
},
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.row {
|
||||
margin-top: 5%;
|
||||
}
|
||||
|
||||
.topic .topic-body {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.topic .topic-heading {
|
||||
border: solid;
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
background-color: #4169a0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.topic .topic-body {
|
||||
border: solid;
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
background-color: #EE7C34;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.row .topic {
|
||||
border: solid;
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
margin-top: 5%;
|
||||
margin-bottom: 5%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,130 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="guideBar">
|
||||
<h1>{{ msg }}</h1>
|
||||
<div class="row">
|
||||
</div>
|
||||
<div class="input-group input-group-lg bottom">
|
||||
<!--
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">Search</span>
|
||||
</div>
|
||||
-->
|
||||
<input type="text" class="form-control col-md-12" v-model="query" @keyup.prevent="search">
|
||||
</div>
|
||||
<div class="row" v-if="results">
|
||||
<div class="col-md-12" v-for="(result,index) in results" :key="index">
|
||||
<div class="topic">
|
||||
<div class="topic-heading">
|
||||
<p>Subject : {{ result._source.subject }}</p>
|
||||
<p>Genre: {{ result._source.genre }}</p>
|
||||
<p>Title: {{ result._source.title}}</p>
|
||||
</div>
|
||||
<div class="topic-body">
|
||||
<p>Year : {{ result._source.year }}.</p>
|
||||
<p>Authors: {{ result._source.person_aut }}</p>
|
||||
<div v-if="result._source.id_doi">
|
||||
<p>Doi id:<a :href="'https://www.doi.org/' + result._source.id_doi" target="_blank">{{result._source.id_doi}}</a>
|
||||
</p>
|
||||
</div>
|
||||
<div v-else>
|
||||
<p> Doi id: none </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'SearchComponent',
|
||||
props: {
|
||||
msg: String,
|
||||
time: Array
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
results: [],
|
||||
query: "",
|
||||
timeRange: [],
|
||||
doiURL: ""
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
search: function () {
|
||||
if (this.timeRange.length === 0) {
|
||||
this.timeRange = [1965, 2020];
|
||||
}
|
||||
this.$api.get("search?q=" + this.query + "&g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.results = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
time: function () {
|
||||
this.timeRange = this.time;
|
||||
this.search();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
h3 {
|
||||
margin: 40px 0 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #42b983;
|
||||
}
|
||||
|
||||
p {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-top: 2%;
|
||||
}
|
||||
|
||||
.topic .topic-body {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.topic .topic-heading {
|
||||
border: solid;
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
background-color: #4169a0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.topic .topic-body {
|
||||
border: solid;
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
background-color: #EE7C34;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.row .topic {
|
||||
border: solid;
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
|
||||
}
|
||||
|
||||
.topic-body a {
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{title}}</h5>
|
||||
<div class="card-text">
|
||||
<div class="d-flex justify-content-center text-dark">
|
||||
<div class="spinner-border" role="status" v-if="loading">
|
||||
<span class="sr-only">Loading...</span>
|
||||
</div>
|
||||
</div>
|
||||
<h1 v-if="!loading" height="300">{{values.doc_count}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "StatisticsComponent",
|
||||
props: {
|
||||
title: String,
|
||||
loading: Boolean,
|
||||
type: String,
|
||||
resultSet: Array
|
||||
},
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
methods: {},
|
||||
computed: {
|
||||
values: function () {
|
||||
if (this.loading) return {};
|
||||
let obj = this.resultSet.find(item => item.key === this.type);
|
||||
if (obj) {
|
||||
return obj
|
||||
} else {
|
||||
return {
|
||||
val: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.card-body {
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,85 @@
|
||||
<template>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{title}}</h5>
|
||||
<div class="card-text">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<v-app id="inspire">
|
||||
<v-card flat color="transparent">
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="px-0">
|
||||
<v-range-slider
|
||||
v-model="range"
|
||||
:max="max"
|
||||
:min="min"
|
||||
color="#EE7C34"
|
||||
track-color="#1B4A8D"
|
||||
hide-details
|
||||
class="align-center"
|
||||
@end="broadcastTimeSlot">
|
||||
<template v-slot:prepend>
|
||||
<v-text-field
|
||||
:value="range[0]"
|
||||
class="mt-0 pt-0"
|
||||
hide-details
|
||||
single-line
|
||||
type="number"
|
||||
style="width: 60px"
|
||||
@change="$set(range, 0, $event)"
|
||||
></v-text-field>
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<v-text-field
|
||||
:value="range[1]"
|
||||
class="mt-0 pt-0"
|
||||
hide-details
|
||||
single-line
|
||||
type="number"
|
||||
style="width: 60px"
|
||||
@change="$set(range, 1, $event)"
|
||||
></v-text-field>
|
||||
</template>
|
||||
</v-range-slider>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-app>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vuetify from "vuetify";
|
||||
import store from '../store';
|
||||
|
||||
export default {
|
||||
name: "TimeSliderComponent",
|
||||
vuetify: new Vuetify(),
|
||||
props: {
|
||||
title: String,
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
min: 1965,
|
||||
max: 2020,
|
||||
range: [1965, 2020]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
broadcastTimeSlot: function () {
|
||||
store.commit("changeTime",this.range);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,87 @@
|
||||
<template>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{title}}</h5>
|
||||
<div class="card-text">
|
||||
<div class="d-flex justify-content-center text-dark">
|
||||
<div class="spinner-border" role="status" v-if="loading">
|
||||
<span class="sr-only">Loading...</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wordCloud" v-if="!loading">
|
||||
<vue-word-cloud
|
||||
class="word-cloud"
|
||||
style="position:absolute; width: 95%;height: 90%;padding:10%;"
|
||||
:words="keywords"
|
||||
:color="([, weight]) => calculateColors(weight)"
|
||||
animation-easing="ease-in"
|
||||
:animation-duration=500
|
||||
:spacing=1
|
||||
font-family="Anton">
|
||||
<template slot-scope="{text, weight}">
|
||||
<div :title="weight" style="cursor: default;" @click="onWordClick(text)">
|
||||
{{ text }}
|
||||
</div>
|
||||
</template>
|
||||
</vue-word-cloud>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import VueWordCloud from 'vuewordcloud';
|
||||
|
||||
|
||||
export default {
|
||||
name: "WordCloudComponent",
|
||||
props: {
|
||||
title: String,
|
||||
keywords: Array,
|
||||
minMax:Array,
|
||||
loading: Boolean
|
||||
},
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
components: {
|
||||
[VueWordCloud.name]: VueWordCloud,
|
||||
},
|
||||
methods: {
|
||||
onWordClick: function (text) {
|
||||
this.$emit("selectedWord", text);
|
||||
},
|
||||
calculateColors:function (weight) {
|
||||
if(this.keywords.length > 1){
|
||||
let min = this.minMax[0];
|
||||
let max = this.minMax[1];
|
||||
if(weight > max/2){
|
||||
return '#c67205';
|
||||
}else if(weight > min*1.5){
|
||||
return '#faab58'
|
||||
}else{
|
||||
return '#f6d6aa'
|
||||
}
|
||||
}else{
|
||||
return '#c67205';
|
||||
}
|
||||
|
||||
//return ([, weight]) => weight > 2500 ? '#cc6600' : weight > 900 ? '#0033cc' : ' #ffb366'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.card-text {
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
.word-cloud div div:hover {
|
||||
color: black;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<v-dialog max-width="600px">
|
||||
<v-btn text slot="activator" class="success">dialog</v-btn>
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
<h2>edit or add new word</h2>
|
||||
</v-card-title>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "popupComponent",
|
||||
props: {
|
||||
showDialog: Boolean,
|
||||
},
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<input placeholder="Enter text here"
|
||||
v-model="tempMessage"
|
||||
@keyup.enter="submit"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "MessageComponent",
|
||||
data:function(){
|
||||
return {
|
||||
tempMessage: ""
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
submit: function(){
|
||||
this.$emit("KeyToData",this.tempMessage);
|
||||
this.tempMessage="";
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<li v-for="(message,index) in messages" :item="message" :key="index">
|
||||
{{message}}
|
||||
</li>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ResultComponent",
|
||||
props: {
|
||||
message:{
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data:function(){
|
||||
return{
|
||||
messages:[]
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
message:function(){
|
||||
this.messages.push(this.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,26 @@
|
||||
import Vue from 'vue';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import store from './store';
|
||||
import vuetify from './plugins/vuetify';
|
||||
import 'materialize-css/dist/css/materialize.min.css';
|
||||
import 'material-design-icons/iconfont/material-icons.css';
|
||||
import axios from 'axios';
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Vue.use({
|
||||
install(Vue) {
|
||||
Vue.prototype.$api = axios.create(
|
||||
{baseURL: 'http://localhost:3000/api/v1/'},
|
||||
{cache: false}
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
vuetify,
|
||||
render: h => h(App)
|
||||
}).$mount('#app')
|
||||
@@ -0,0 +1,20 @@
|
||||
import axios from "axios";
|
||||
|
||||
async function fetchUdeStats(word) {
|
||||
return axios.get("http://localhost:3000/api/v1/keywordPerYear/search?q=" + word, {cache: false})
|
||||
.then(res => {
|
||||
return res.data;
|
||||
});
|
||||
}
|
||||
|
||||
async function fetchDblpStats(word) {
|
||||
return axios.get("http://localhost:3000/api/v1/dblp/keywordPerYear/search?q=" + word, {cache: false})
|
||||
.then(res => {
|
||||
return res.data;
|
||||
});
|
||||
}
|
||||
|
||||
exports.getStats = async function (word) {
|
||||
let ude = await fetchUdeStats(word);
|
||||
let dblp = await fetchDblpStats(word);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import Vue from 'vue';
|
||||
import Vuetify from 'vuetify/lib';
|
||||
import '@mdi/font/css/materialdesignicons.css'
|
||||
|
||||
|
||||
Vue.use(Vuetify);
|
||||
|
||||
export default new Vuetify({
|
||||
icons: {
|
||||
iconfont: 'mdi',
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,92 @@
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import Home from '../views/Home.vue'
|
||||
import Search from '../views/Search.vue'
|
||||
import Index from '../views/Index.vue'
|
||||
import DBLPStatistics from '../views/DBLPStatistics.vue'
|
||||
import DBLPvsDUE from "../views/DBLPvsDUE.vue"
|
||||
import Report from '../views/Report.vue'
|
||||
|
||||
import {BootstrapVue, IconsPlugin} from "bootstrap-vue";
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.css'
|
||||
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
||||
|
||||
import VueApexCharts from 'vue-apexcharts'
|
||||
import Auth from '@okta/okta-vue'
|
||||
|
||||
Vue.component('apexchart', VueApexCharts)
|
||||
|
||||
Vue.use(Auth, {
|
||||
issuer: 'https://dev-130162.okta.com/oauth2/default',
|
||||
client_id: '0oae6log1JJnPOnXt4x6',
|
||||
redirect_uri: window.location.origin + '/implicit/callback',
|
||||
scopes: ['openid', 'profile', 'email'],
|
||||
pkce: true
|
||||
})
|
||||
|
||||
Vue.use(BootstrapVue)
|
||||
Vue.use(IconsPlugin)
|
||||
|
||||
|
||||
let router = new VueRouter({
|
||||
mode: 'history',
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'index',
|
||||
component: Index
|
||||
},
|
||||
{
|
||||
path: '/uni',
|
||||
name: 'Home',
|
||||
component: Home,
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/dblp',
|
||||
name: 'Dblp',
|
||||
component:DBLPStatistics,
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/compare',
|
||||
name: 'DBLPvsDUE',
|
||||
component: DBLPvsDUE,
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/report',
|
||||
name: 'Report',
|
||||
component: Report,
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/implicit/callback',
|
||||
component: Auth.handleCallback()
|
||||
},
|
||||
{
|
||||
path: '/search',
|
||||
name: 'Search',
|
||||
component: Search,
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
router.beforeEach(Vue.prototype.$auth.authRedirectGuard());
|
||||
|
||||
export default router
|
||||
@@ -0,0 +1,43 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import 'es6-promise/auto'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
wordsList: [["community detection", 0.1],
|
||||
["brain-computer interface", 0.04],
|
||||
["sensor networks", 0.13]],
|
||||
wordsListDblp:[["robotic",0.3]],
|
||||
time: [1965, 2020]
|
||||
},
|
||||
getters: {
|
||||
time: state => state.time
|
||||
},
|
||||
mutations: {
|
||||
pushWord(state, payload) {
|
||||
state.wordsList.push(payload);
|
||||
},
|
||||
popWord(state, payload) {
|
||||
state.wordsList = state.wordsList.filter(item => item!== state.wordsList[payload]);
|
||||
},
|
||||
updateWord(state,payload){
|
||||
state.wordsList[payload.index][1] = payload.value;
|
||||
},
|
||||
pushWordDblp(state, payload) {
|
||||
state.wordsListDblp.push(payload);
|
||||
},
|
||||
popWordDblp(state, payload) {
|
||||
state.wordsListDblp = state.wordsListDblp.filter(item => item!== state.wordsListDblp[payload]);
|
||||
},
|
||||
updateWordDblp(state,payload){
|
||||
state.wordsListDblp[payload.index][1] = payload.value;
|
||||
},
|
||||
changeTime(state,payload){
|
||||
state.time = payload;
|
||||
}
|
||||
},
|
||||
actions: {},
|
||||
modules: {}
|
||||
})
|
||||
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div class="about">
|
||||
<AboutComponent msg="This is a test message"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AboutComponent from '@/components/AboutComponent.vue'
|
||||
|
||||
export default {
|
||||
name: "About",
|
||||
components: {
|
||||
AboutComponent,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,240 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<div class="container-fluid">
|
||||
<div class="row" id="divider">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<h6 class=" text-uppercase">DBLP Database</h6>
|
||||
<hr class="solid"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<TimeSliderComponent title="Year of entry" @time="getTime"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<StatisticsComponent title="Number of proceedings" type="proceedings" :loading="loading"
|
||||
:resultSet="dblp_statisticsResults"/>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<StatisticsComponent title="Number of articles" type="article" :loading="loading"
|
||||
:resultSet="dblp_statisticsResults"/>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<StatisticsComponent title="Number of books" type="book" :loading="loading"
|
||||
:resultSet="dblp_statisticsResults"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<ApexComponent title="Percentage of entries" :loading="loading" type="donut"
|
||||
:resultSet="dblp_statisticsResults"/>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ApexComponent title="Analysis of dblp entries during years" :loading="loading" type="area"
|
||||
:resultSet="dblp_yearlyStatisticsResults"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<KeywordComponent></KeywordComponent>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div v-if="!this.wordCloudEmpty">
|
||||
<WordCloudComponent title="Keywords" :loading="loading" :keywords="dblp_keywordResults"
|
||||
:minMax="findMaxMin(dblp_keywordResults)"
|
||||
@selectedWord="keyWordSelected"></WordCloudComponent>
|
||||
</div>
|
||||
<div v-else>
|
||||
<WordCloudComponent title="Keywords" :loading="loading" :keywords="keywords"
|
||||
:minMax="findMaxMin(keywords)"
|
||||
@selectedWord="keyWordSelected"></WordCloudComponent>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<BarChartComponent :word=wordToBarChart :loading="loading"
|
||||
:resultSet="dblp_wordStatisticsResults"></BarChartComponent>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<QueryStatisticsComponent title="20 random publication results of the keyword in the time range"
|
||||
:loading="loading"
|
||||
:resultSet="dblp_queryStatisticsResults"></QueryStatisticsComponent>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import WordCloudComponent from '@/components/WordCloudComponent.vue'
|
||||
import StatisticsComponent from '@/components/StatisticsComponent.vue'
|
||||
import ApexComponent from '@/components/ApexComponent.vue'
|
||||
import TimeSliderComponent from '@/components/TimeSliderComponent.vue'
|
||||
import KeywordComponent from '@/components/KeywordComponent.vue'
|
||||
import BarChartComponent from '@/components/BarChartComponent.vue'
|
||||
import QueryStatisticsComponent from '@/components/QueryStatisticsComponent.vue'
|
||||
|
||||
import store from "../store";
|
||||
|
||||
export default {
|
||||
name: "DBLPStatistics",
|
||||
components: {
|
||||
WordCloudComponent,
|
||||
StatisticsComponent,
|
||||
ApexComponent,
|
||||
TimeSliderComponent,
|
||||
KeywordComponent,
|
||||
BarChartComponent,
|
||||
QueryStatisticsComponent
|
||||
},
|
||||
props: {
|
||||
props: {
|
||||
time: Array
|
||||
}
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
minMax_dblp: [],
|
||||
loading: false,
|
||||
dblp_statisticsResults: [],
|
||||
dblp_yearlyStatisticsResults: [],
|
||||
dblp_wordStatisticsResults: {},
|
||||
dblp_queryStatisticsResults: [],
|
||||
wordToBarChart: '',
|
||||
wordCloudEmpty: false,
|
||||
keywords: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
keyWordSelected: function (msg) {
|
||||
this.wordToBarChart = msg;
|
||||
this.fetchDblpQueryStatisticsfromAPI();
|
||||
this.fetchDblpKeywordStatisticsfromAPI();
|
||||
},
|
||||
fetchDblpStatistics: function () {
|
||||
this.loading = true;
|
||||
if (this.timeRange.length === 0) {
|
||||
this.timeRange = [1965, 2020];
|
||||
}
|
||||
this.$api.get("dblp/statistics/search" + "?g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.dblp_statisticsResults = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
fetchDblpKeywordsFromAPI: function () {
|
||||
this.loading = true;
|
||||
this.$api.get("dblp/keywords" + "?g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.keywords = res.data.map(Object.values)
|
||||
this.minMax_dblp = this.findMaxMin(this.keywords);
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
fetchKeywordsCount: function () {
|
||||
this.loading = true;
|
||||
let payload = {};
|
||||
for (let i = 0; i < this.dblp_keywordResults.length; i++) {
|
||||
this.$api.get("dblp/wordcount/search?q=" + this.dblp_keywordResults[i][0] + "&g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
if (res.data.value !== this.dblp_keywordResults[i][1]) {
|
||||
payload = {"index": i, "value": res.data.value};
|
||||
store.commit("updateWordDblp", payload);
|
||||
}
|
||||
}).catch(err => console.log(err));
|
||||
}
|
||||
this.loading = false;
|
||||
},
|
||||
fetchDblpYearStatistics: function () {
|
||||
this.loading = true;
|
||||
this.$api.get("dblp/yearlyStatistics/search" + "?g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.dblp_yearlyStatisticsResults = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
fetchDblpQueryStatisticsfromAPI: function () {
|
||||
this.loading = true;
|
||||
this.$api.get("dblp/queryStatistics/search?q=" + this.wordToBarChart + "&g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.dblp_queryStatisticsResults = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
fetchDblpKeywordStatisticsfromAPI: function () {
|
||||
this.loading = true;
|
||||
this.$api.get("dblp/listPublications/search?q=" + this.wordToBarChart + "&g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.dblp_wordStatisticsResults = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
refreshPageInfo: function () {
|
||||
this.fetchDblpStatistics();
|
||||
this.fetchDblpYearStatistics();
|
||||
this.fetchDblpQueryStatisticsfromAPI();
|
||||
this.fetchKeywordsCount();
|
||||
this.fetchDblpKeywordStatisticsfromAPI();
|
||||
|
||||
},
|
||||
getTime: function (time) {
|
||||
this.timeRange = time;
|
||||
this.refreshPageInfo();
|
||||
|
||||
},
|
||||
findMaxMin: function (keywords) {
|
||||
if (keywords.length > 1) {
|
||||
let min = keywords[0][1];
|
||||
let max = keywords[0][1];
|
||||
keywords.forEach(word => {
|
||||
if (min > word[1]) {
|
||||
min = word[1];
|
||||
} else if (max < word[1]) {
|
||||
max = word[1];
|
||||
}
|
||||
});
|
||||
return [min, max];
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.fetchDblpStatistics();
|
||||
this.fetchDblpYearStatistics();
|
||||
},
|
||||
computed: {
|
||||
dblp_keywordResults: function () {
|
||||
return store.state.wordsListDblp;
|
||||
},
|
||||
timeRange: function () {
|
||||
return store.state.time;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
timeRange: function () {
|
||||
this.refreshPageInfo();
|
||||
},
|
||||
dblp_keywordResults: function () {
|
||||
if (this.dblp_keywordResults.length === 0) {
|
||||
this.wordCloudEmpty = true;
|
||||
this.fetchDblpKeywordsFromAPI();
|
||||
} else {
|
||||
this.wordCloudEmpty = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.card {
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
margin-top: 2%;
|
||||
}
|
||||
|
||||
#divider {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
hr.solid {
|
||||
border-top: 2px solid #999999;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,100 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<div class="container-fluid">
|
||||
<div class="row" id="divider">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<h6 class=" text-uppercase">DBLP vs. University of Duisburg-Essen</h6>
|
||||
<hr class="solid"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<KeywordComparisonComponent @keywordComparison="receiveKeyword"></KeywordComparisonComponent>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div v-if="keywordPerYear.length > 0 && dblp_keywordPerYear.length > 0 ">
|
||||
<ApexComponent :title=titleToPass :loading="loading" type="area_compare"
|
||||
:resultSet="keywordPerYear" :resultSet2="dblp_keywordPerYear"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ApexComponent from '@/components/ApexComponent.vue';
|
||||
import KeywordComparisonComponent from '@/components/KeywordComparisonComponent.vue'
|
||||
|
||||
export default {
|
||||
name: "DBLPvsDUE",
|
||||
components: {
|
||||
ApexComponent,
|
||||
KeywordComparisonComponent
|
||||
},
|
||||
props: {
|
||||
time: Array
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
loading: false,
|
||||
keywordPerYear: [],
|
||||
dblp_keywordPerYear: [],
|
||||
keyword: "",
|
||||
titleToPass: ""
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
receiveKeyword: async function (word) {
|
||||
this.loading = true;
|
||||
this.keyword = word;
|
||||
this.titleToPass = "Trend analysis of keyword \"" + word + "\" for dblp vs DUE in the last 9 years";
|
||||
this.keywordPerYear = await this.fetchKeywordPerYearStatistics(word);
|
||||
this.dblp_keywordPerYear = await this.fetchDblpKeywordPerYearStatistics(word);
|
||||
this.loading = false;
|
||||
},
|
||||
//TODO refactoring using promise.all or axios.all
|
||||
/*retrieveDataFromAPI:function(){
|
||||
|
||||
Promise.all([
|
||||
this.fetchKeywordPerYearStatistics,
|
||||
this.fetchDblpKeywordPerYearStatistics
|
||||
]).then(axios.spread((udeResponse,dblpResponse)=>{
|
||||
this.keywordPerYear = udeResponse.data;
|
||||
this.dblp_keywordPerYear = dblpResponse.data;
|
||||
}));
|
||||
|
||||
}*/
|
||||
fetchKeywordPerYearStatistics: function (word) {
|
||||
return this.$api.get("keywordPerYear/search?q=" + word).then(res => {
|
||||
return res.data
|
||||
}).catch(err => console.log(err));
|
||||
},
|
||||
fetchDblpKeywordPerYearStatistics: function (word) {
|
||||
return this.$api.get("dblp/keywordPerYear/search?q=" + word).then(res => {
|
||||
return res.data
|
||||
}).catch(err => console.log(err));
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.card {
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
margin-top: 2%;
|
||||
}
|
||||
|
||||
#divider {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
hr.solid {
|
||||
border-top: 2px solid #999999;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,236 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<div class="container-fluid">
|
||||
<div class="row" id="divider">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<h6 class=" text-uppercase">University Duisburg-Essen</h6>
|
||||
<hr class="solid"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<TimeSliderComponent title="Year of entry"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<StatisticsComponent title="Number of publications" type="article" :loading="loading"
|
||||
:resultSet="statisticsResults"/>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<StatisticsComponent title="Number of dissertations" type="dissertation" :loading="loading"
|
||||
:resultSet="statisticsResults"/>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<StatisticsComponent title="Number of books" type="book" :loading="loading"
|
||||
:resultSet="statisticsResults"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<ApexComponent title="Percentage of entries" :loading="loading" type="donut"
|
||||
:resultSet="statisticsResults"/>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ApexComponent title="Analysis of entries during years" :loading="loading" type="area"
|
||||
:resultSet="yearlyStatisticsResults"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<KeywordComponent></KeywordComponent>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div v-if="!this.wordCloudEmpty">
|
||||
<WordCloudComponent title="Keywords" :loading="loading" :keywords="keywordResults"
|
||||
:minMax="findMaxMin(keywordResults)"
|
||||
@selectedWord="keyWordSelected"></WordCloudComponent>
|
||||
</div>
|
||||
<div v-else>
|
||||
<WordCloudComponent title="Keywords" :loading="loading" :keywords="keywords"
|
||||
:minMax="findMaxMin(keywords)"
|
||||
@selectedWord="keyWordSelected"></WordCloudComponent>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<BarChartComponent :word=wordToBarChart :loading="loading"
|
||||
:resultSet="wordStatisticsResults"></BarChartComponent>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<QueryStatisticsComponent title="20 random publication results of the keyword in the time range"
|
||||
:loading="loading"
|
||||
:resultSet="queryStatisticsResults"></QueryStatisticsComponent>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import WordCloudComponent from '@/components/WordCloudComponent.vue'
|
||||
import StatisticsComponent from '@/components/StatisticsComponent.vue'
|
||||
import ApexComponent from '@/components/ApexComponent.vue';
|
||||
import BarChartComponent from '@/components/BarChartComponent.vue'
|
||||
import QueryStatisticsComponent from '@/components/QueryStatisticsComponent.vue'
|
||||
import TimeSliderComponent from '@/components/TimeSliderComponent.vue'
|
||||
import KeywordComponent from '@/components/KeywordComponent.vue'
|
||||
|
||||
import store from '../store'
|
||||
|
||||
export default {
|
||||
name: 'Home',
|
||||
components: {
|
||||
WordCloudComponent,
|
||||
BarChartComponent,
|
||||
StatisticsComponent,
|
||||
ApexComponent,
|
||||
QueryStatisticsComponent,
|
||||
TimeSliderComponent,
|
||||
KeywordComponent
|
||||
},/*
|
||||
props: {
|
||||
time: Array
|
||||
},*/
|
||||
data: function () {
|
||||
return {
|
||||
wordToBarChart: "",
|
||||
statisticsResults: [],
|
||||
yearlyStatisticsResults: [],
|
||||
wordStatisticsResults: {},
|
||||
queryStatisticsResults: [],
|
||||
minMax_due: [],
|
||||
loading: false,
|
||||
wordCloudEmpty: false,
|
||||
keywords: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
keyWordSelected: function (msg) {
|
||||
this.wordToBarChart = msg;
|
||||
this.fetchKeywordStatisticsfromAPI();
|
||||
this.fetchQueryStatisticsfromAPI();
|
||||
},
|
||||
fetchStatistics: function () {
|
||||
this.loading = true;
|
||||
if (this.timeRange.length === 0) {
|
||||
this.timeRange = [1965, 2020];
|
||||
}
|
||||
this.$api.get("statistics/search" + "?g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.statisticsResults = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
fetchYearStatistics: function () {
|
||||
this.loading = true;
|
||||
this.$api.get("yearlyStatistics/search" + "?g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.yearlyStatisticsResults = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
fetchKeywordsfromAPI: function () {
|
||||
this.loading = true;
|
||||
this.$api.get("" + "?g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.keywords = res.data.map(Object.values);
|
||||
this.minMax_due = this.findMaxMin(this.keywords);
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
fetchKeywordsCount: function () {
|
||||
this.loading = true;
|
||||
let payload = {};
|
||||
for (let i = 0; i < this.keywordResults.length; i++) {
|
||||
this.$api.get("wordcount/search?q=" + this.keywordResults[i][0] + "&g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
if (res.data.value !== this.keywordResults[i][1]) {
|
||||
payload = {"index": i, "value": res.data.value};
|
||||
store.commit("updateWord", payload);
|
||||
}
|
||||
}).catch(err => console.log(err));
|
||||
}
|
||||
this.loading = false;
|
||||
},
|
||||
fetchKeywordStatisticsfromAPI: function () {
|
||||
this.loading = true;
|
||||
this.$api.get("listPublications/search?q=" + this.wordToBarChart + "&g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.wordStatisticsResults = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
fetchQueryStatisticsfromAPI: function () {
|
||||
this.loading = true;
|
||||
this.$api.get("queryStatistics/search?q=" + this.wordToBarChart + "&g=" + this.timeRange[0] + "&l=" + this.timeRange[1]).then(res => {
|
||||
this.queryStatisticsResults = res.data;
|
||||
}).catch(err => console.log(err));
|
||||
this.loading = false;
|
||||
},
|
||||
refreshPageInfo: function () {
|
||||
this.fetchStatistics();
|
||||
this.fetchYearStatistics();
|
||||
this.fetchKeywordStatisticsfromAPI();
|
||||
this.fetchQueryStatisticsfromAPI();
|
||||
this.fetchKeywordsCount();
|
||||
this.fetchKeywordsfromAPI();
|
||||
},
|
||||
findMaxMin: function (keywords) {
|
||||
if (keywords.length > 1) {
|
||||
let min = keywords[0][1];
|
||||
let max = keywords[0][1];
|
||||
keywords.forEach(word => {
|
||||
if (min > word[1]) {
|
||||
min = word[1];
|
||||
} else if (max < word[1]) {
|
||||
max = word[1];
|
||||
}
|
||||
});
|
||||
return [min, max];
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.fetchStatistics();
|
||||
this.fetchYearStatistics();
|
||||
},
|
||||
computed: {
|
||||
keywordResults: function () {
|
||||
return store.state.wordsList;
|
||||
},
|
||||
timeRange: function () {
|
||||
return store.state.time;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
timeRange: function () {
|
||||
this.refreshPageInfo();
|
||||
},
|
||||
keywordResults: function () {
|
||||
if (this.keywordResults.length === 0) {
|
||||
this.wordCloudEmpty = true;
|
||||
this.fetchKeywordsfromAPI();
|
||||
} else {
|
||||
this.wordCloudEmpty = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.card {
|
||||
border-radius: 10px 10px 10px 10px;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
margin-top: 2%;
|
||||
}
|
||||
|
||||
#divider {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
hr.solid {
|
||||
border-top: 2px solid #999999;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<div class="index">
|
||||
<HomepageComponent />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import HomepageComponent from '@/components/HomepageComponent'
|
||||
export default {
|
||||
name: "Index",
|
||||
components: {
|
||||
HomepageComponent
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,370 @@
|
||||
<template>
|
||||
<div class="report">
|
||||
<div class="container-fluid">
|
||||
<div class="row" id="divider">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<h6 class=" text-uppercase">Keyword trends report generation</h6>
|
||||
<hr class="solid"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="words-container">
|
||||
<div class="col-sm-12">
|
||||
<v-app id="inspire">
|
||||
<v-card>
|
||||
<v-toolbar color="#104187" dark flat>
|
||||
<v-icon>mdi-form-dropdown</v-icon>
|
||||
<v-toolbar-title>Keywords</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-card-text>
|
||||
<v-treeview
|
||||
id="tree"
|
||||
v-model="tree"
|
||||
:load-children="fetch"
|
||||
:items="items"
|
||||
selected-color="#104187"
|
||||
open-on-click
|
||||
selectable
|
||||
return-object
|
||||
hoverable
|
||||
expand-icon="mdi-chevron-down"
|
||||
on-icon="mdi-bookmark"
|
||||
off-icon="mdi-bookmark-outline"
|
||||
indeterminate-icon="mdi-bookmark-minus">
|
||||
<template slot="append" slot-scope="{ item }" v-if="editMode">
|
||||
<v-card-actions>
|
||||
<v-btn icon color="#A5694F" fab small @click="editChild(item);">
|
||||
<v-icon right>mdi-playlist-edit</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon color="#104187" fab small @click="addChild(item);">
|
||||
<v-icon right>mdi-pencil-plus-outline</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon color="#ff2500" fab small @click="removeChild(item);">
|
||||
<v-icon right>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
</v-treeview>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-divider vertical></v-divider>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col
|
||||
cols="12"
|
||||
md="12">
|
||||
<v-card-text>
|
||||
<div
|
||||
v-if="tree.length === 0"
|
||||
key="title"
|
||||
class="title font-weight-light grey--text pa-4 text-center">
|
||||
Select the keywords to investigate trends
|
||||
</div>
|
||||
|
||||
<v-scroll-x-transition
|
||||
group
|
||||
hide-on-leave>
|
||||
<v-chip
|
||||
v-for="(selection, i) in tree"
|
||||
:key="i"
|
||||
color="grey"
|
||||
dark
|
||||
small
|
||||
class="ma-1">
|
||||
<v-icon left small>mdi-bullhorn</v-icon>
|
||||
{{ selection.name }}
|
||||
</v-chip>
|
||||
</v-scroll-x-transition>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-divider vertical></v-divider>
|
||||
|
||||
<v-card-actions>
|
||||
<v-btn id="resetBtn" text @click="closeReport()">
|
||||
<v-icon left>mdi-rotate-left</v-icon>
|
||||
Reset
|
||||
</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn class="white--text" color="#fdb924" depressed @click="toggleEditMode()">
|
||||
Edit mode
|
||||
<v-icon right>mdi-monitor-edit</v-icon>
|
||||
</v-btn>
|
||||
<v-btn class="white--text" color="#5c940d" :loading="loading" depressed
|
||||
@click="loadReport()">
|
||||
Generate Report
|
||||
<v-icon right>mdi-axis-arrow</v-icon>
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-app>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!--Report generation mechanism -->
|
||||
<div class="reports-container" v-if="showReport">
|
||||
<div class="row">
|
||||
<div class="col-sm-12" v-for="(result,index) in results" :key="index">
|
||||
<ApexComponent :title="result[0]" :loading="loading" type="area_compare"
|
||||
:resultSet="result[1]" :resultSet2="result[2]"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal dialogs-->
|
||||
<v-dialog max-width="600px" v-model="showEditDialog">
|
||||
<v-card>
|
||||
<v-toolbar color="#37b24d" dark flat>
|
||||
<v-toolbar-title>Edit keyword</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<v-row>
|
||||
<v-card-text>
|
||||
<v-text-field label="" :value="actualNode.name" v-model="actualNode.name"
|
||||
outlined></v-text-field>
|
||||
<v-card-actions>
|
||||
<v-btn text depressed @click="closeDialog()">
|
||||
Cancel
|
||||
</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn class="white--text primary" depressed @click="submitEdit()">
|
||||
Submit
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card-text>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
<v-dialog max-width="600px" v-model="showAddDialog">
|
||||
<v-card>
|
||||
<v-toolbar color="#37b24d" dark flat>
|
||||
<v-toolbar-title>Add a new keyword</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<v-row>
|
||||
<v-card-text>
|
||||
<v-text-field label="" value="" v-model="actualNode.name" outlined></v-text-field>
|
||||
<v-card-actions>
|
||||
<v-btn text depressed @click="closeDialog()">
|
||||
Cancel
|
||||
</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn class="white--text primary" depressed @click="submitAdd()">
|
||||
Submit
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card-text>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ApexComponent from '@/components/ApexComponent.vue';
|
||||
|
||||
const pause = ms => new Promise(resolve => setTimeout(resolve, ms))
|
||||
|
||||
export default {
|
||||
name: "Report",
|
||||
components: {
|
||||
ApexComponent,
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
words: [],
|
||||
isLoading: false,
|
||||
selection: [],
|
||||
tree: [],
|
||||
nodes: [],
|
||||
showReport: false,
|
||||
loading: false,
|
||||
results: [],
|
||||
editMode: false,
|
||||
nextId: 1000,
|
||||
showEditDialog: false,
|
||||
showAddDialog: false,
|
||||
actualNode: {},
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
fetch: async function () {
|
||||
await pause(1500);
|
||||
if (this.words.length) return
|
||||
return this.$api.get("report/keywords")
|
||||
.then(res => {
|
||||
this.words = res.data;
|
||||
})
|
||||
.catch(err => console.log(err));
|
||||
|
||||
},
|
||||
loadReport: async function () {
|
||||
this.loading = true;
|
||||
await pause(2500);
|
||||
let bundle = [];
|
||||
let tempArray = [];
|
||||
for (const word of this.tree) {
|
||||
tempArray.push("Trend analysis of keyword \"" + word.name + "\" for dblp vs DUE in the last 9 years");
|
||||
let ude = await this.fetchUdeStats(word.name);
|
||||
let dblp = await this.fetchDblpStats(word.name);
|
||||
tempArray.push(ude);
|
||||
tempArray.push(dblp);
|
||||
bundle.push(tempArray);
|
||||
tempArray = [];
|
||||
}
|
||||
this.results = bundle;
|
||||
this.showReport = true;
|
||||
this.loading = false;
|
||||
},
|
||||
closeReport: function () {
|
||||
this.showReport = false;
|
||||
this.editMode = false;
|
||||
this.tree = [];
|
||||
this.results = [];
|
||||
},
|
||||
toggleEditMode: function () {
|
||||
this.editMode = !this.editMode;
|
||||
},
|
||||
addChild(item) {
|
||||
this.actualNode = {
|
||||
"id": item.id,
|
||||
"name": item.name
|
||||
}
|
||||
this.showAddDialog = true;
|
||||
},
|
||||
submitAdd() {
|
||||
const node = this.actualNode;
|
||||
const words = this.words;
|
||||
|
||||
this.addChildNode(words, node);
|
||||
this.closeDialog()
|
||||
},
|
||||
addChildNode: function (words, node) {
|
||||
const name = node.name;
|
||||
const id = this.nextId++;
|
||||
if (node.id === 1) {
|
||||
this.items[0].children.push({
|
||||
id,
|
||||
name
|
||||
});
|
||||
} else {
|
||||
for (let i = 0; i < words.length; i++) {
|
||||
var word = words[i];
|
||||
if (word.id === node.id) {
|
||||
if (!word.children) {
|
||||
this.$set(words[i], "children", []);
|
||||
}
|
||||
words[i].children.push({
|
||||
id,
|
||||
name
|
||||
});
|
||||
}
|
||||
if (word.children) {
|
||||
this.addChildNode(word.children, node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
removeChild: function (item) {
|
||||
this.deleteNode(this.words, item.id);
|
||||
|
||||
},
|
||||
deleteNode: function (words, id) {
|
||||
for (let i = 0; i < words.length; i++) {
|
||||
var word = words[i];
|
||||
if (word.id === id) {
|
||||
words.splice(i, 1)
|
||||
}
|
||||
if (word.children) {
|
||||
if (this.deleteNode(word.children, id)) {
|
||||
if (word.children.length === 0) {
|
||||
delete word.children;
|
||||
words.splice(i, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
editChild: function (item) {
|
||||
this.actualNode = {
|
||||
"id": item.id,
|
||||
"name": item.name
|
||||
}
|
||||
this.showEditDialog = true;
|
||||
},
|
||||
submitEdit: function () {
|
||||
const node = this.actualNode;
|
||||
const words = this.words;
|
||||
this.changeNodeName(words, node);
|
||||
this.closeDialog();
|
||||
},
|
||||
changeNodeName: function (words, node) {
|
||||
for (let i = 0; i < words.length; i++) {
|
||||
var word = words[i];
|
||||
if (word.id === node.id) {
|
||||
words[i].name = node.name;
|
||||
}
|
||||
if (word.children) {
|
||||
this.changeNodeName(word.children, node);
|
||||
}
|
||||
}
|
||||
},
|
||||
closeDialog: function () {
|
||||
this.showEditDialog = false;
|
||||
this.showAddDialog = false;
|
||||
},
|
||||
fetchUdeStats: function (word) {
|
||||
return this.$api.get("keywordPerYear/search?q=" + word).then(res => {
|
||||
return res.data
|
||||
}).catch(err => console.log(err));
|
||||
},
|
||||
fetchDblpStats: function (word) {
|
||||
return this.$api.get("dblp/keywordPerYear/search?q=" + word).then(res => {
|
||||
return res.data
|
||||
}).catch(err => console.log(err));
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
items: function () {
|
||||
const children = this.nodes;
|
||||
return [{
|
||||
id: 1,
|
||||
name: 'Computer Science',
|
||||
children: children
|
||||
}]
|
||||
},
|
||||
shouldShowTree: function () {
|
||||
return this.words.length > 0 && !this.isLoading
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
words: function () {
|
||||
this.nodes = this.words;
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.words-container {
|
||||
margin: auto;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
#resetBtn:focus {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.reports-container {
|
||||
margin: auto;
|
||||
width: 50%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div class="search">
|
||||
<TimeSliderComponent/>
|
||||
<SearchComponent msg="Search for Authors and Publications in University Database " :time="timeRange"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import SearchComponent from '@/components/SearchComponent.vue'
|
||||
import TimeSliderComponent from '@/components/TimeSliderComponent.vue'
|
||||
import store from "../store";
|
||||
|
||||
export default {
|
||||
name: "Search",
|
||||
components: {
|
||||
SearchComponent,
|
||||
TimeSliderComponent
|
||||
},
|
||||
data: function () {
|
||||
return{
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
computed:{
|
||||
timeRange:function () {
|
||||
return store.state.time;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<div class="test">
|
||||
<MessageComponent @KeyToData = "sendMessage"></MessageComponent>
|
||||
<ResultComponent :message="dataToSend"></ResultComponent>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MessageComponent from '@/components/test/MessageComponent.vue'
|
||||
import ResultComponent from '@/components/test/ResultComponent.vue'
|
||||
|
||||
export default {
|
||||
name: "Test",
|
||||
components:{
|
||||
MessageComponent,
|
||||
ResultComponent
|
||||
},
|
||||
data: function(){
|
||||
return{
|
||||
dataToSend:""
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
sendMessage: function(msg){
|
||||
this.dataToSend = msg;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,13 @@
|
||||
import { expect } from 'chai'
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import HelloWorld from '@/components/SearchComponent.vue'
|
||||
|
||||
describe('SearchComponent.vue', () => {
|
||||
it('renders props.msg when passed', () => {
|
||||
const msg = 'new message'
|
||||
const wrapper = shallowMount(HelloWorld, {
|
||||
propsData: { msg }
|
||||
})
|
||||
expect(wrapper.text()).to.include(msg)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
"transpileDependencies": [
|
||||
"vuetify"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user